Skip to content

Commit 3972ea6

Browse files
committed
removed .idea and handled second case (eq function)
1 parent 8c11143 commit 3972ea6

File tree

6 files changed

+24
-25
lines changed

6 files changed

+24
-25
lines changed

.idea/go.iml

-4
This file was deleted.

.idea/inspectionProfiles/Project_Default.xml

-7
This file was deleted.

.idea/prettier.xml

-6
This file was deleted.

.idea/vcs.xml

-6
This file was deleted.

.idea/workspace.xml

+23-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/text/template/funcs.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ func eq(arg1 reflect.Value, arg2 ...reflect.Value) (bool, error) {
487487
truth = arg.Int() >= 0 && arg1.Uint() == uint64(arg.Int())
488488
default:
489489
if arg1.IsValid() && arg.IsValid() {
490-
return false, errBadComparison
490+
return false, fmt.Errorf("incompatible types for comparison: %v and %v", arg1.Type(), arg.Type())
491491
}
492492
}
493493
} else {

0 commit comments

Comments
 (0)