Commit fc2d9cdf authored by Michael Munday's avatar Michael Munday

cmd/compile: remove underscore from variable names in constant comparison test

The leading underscores aren't necessary.

Change-Id: I1d4c4b681e2a29ef40a0a6cf705c3b17a49c9f65
Reviewed-on: https://go-review.googlesource.com/40873
Run-TryBot: Michael Munday <munday@ca.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 273f4497
......@@ -160,12 +160,12 @@ func main() {
fmt.Fprintf(w, "// results show the expected result for the elements left of, equal to and right of the index.\n")
fmt.Fprintf(w, "type result struct{l, e, r bool}\n")
fmt.Fprintf(w, "var (\n")
fmt.Fprintf(w, " _eq = result{l: false, e: true, r: false}\n")
fmt.Fprintf(w, " _ne = result{l: true, e: false, r: true}\n")
fmt.Fprintf(w, " _lt = result{l: true, e: false, r: false}\n")
fmt.Fprintf(w, " _le = result{l: true, e: true, r: false}\n")
fmt.Fprintf(w, " _gt = result{l: false, e: false, r: true}\n")
fmt.Fprintf(w, " _ge = result{l: false, e: true, r: true}\n")
fmt.Fprintf(w, " eq = result{l: false, e: true, r: false}\n")
fmt.Fprintf(w, " ne = result{l: true, e: false, r: true}\n")
fmt.Fprintf(w, " lt = result{l: true, e: false, r: false}\n")
fmt.Fprintf(w, " le = result{l: true, e: true, r: false}\n")
fmt.Fprintf(w, " gt = result{l: false, e: false, r: true}\n")
fmt.Fprintf(w, " ge = result{l: false, e: true, r: true}\n")
fmt.Fprintf(w, ")\n")
operators := []struct{ op, name string }{
......@@ -207,7 +207,7 @@ func main() {
sig := sigString(r)
for _, op := range operators {
fmt.Fprintf(w, "{idx: %v,", i)
fmt.Fprintf(w, "exp: _%v,", op.name)
fmt.Fprintf(w, "exp: %v,", op.name)
fmt.Fprintf(w, "fn: %v_%v_%v},\n", op.name, sig, typ)
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment