Skip to content

Commit

Permalink
fixup! execgen: use strings.Replacer
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanlewis committed May 30, 2020
1 parent 5591bea commit 9f59b87
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion pkg/sql/colexec/execgen/cmd/execgen/distinct_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ func genDistinctOps(wr io.Writer) error {

r := strings.NewReplacer(
"_CANONICAL_TYPE_FAMILY", "{{.CanonicalTypeFamilyStr}}",
"_CANONICAL_TYPE_FAMILYY", "{{.CanonicalTypeFamilyStr}}",
"_TYPE_WIDTH", typeWidthReplacement,
"_GOTYPESLICE", "{{.GoTypeSliceName}}",
"_GOTYPE", "{{.GoType}}",
Expand Down
2 changes: 1 addition & 1 deletion pkg/sql/colexec/execgen/cmd/execgen/vec_comparators_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func genVecComparators(wr io.Writer) error {
}
r := strings.NewReplacer(
"_CANONICAL_TYPE_FAMILY", "{{.CanonicalTypeFamilyStr}}",
"_TYPE_WIDTH", "{{.Width}}{{if eq .Width -1}}: default{{end}}",
"_TYPE_WIDTH", typeWidthReplacement,
"_GOTYPESLICE", "{{.GoTypeSliceName}}",
"_TYPE", "{{.VecMethod}}",
)
Expand Down

0 comments on commit 9f59b87

Please sign in to comment.