Skip to content

Commit ada8ebd

Browse files
committed
preserve the fix to the typo
1 parent 4c5c386 commit ada8ebd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

go/tools/builders/protoc.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ type genFileInfo struct {
3636
created bool // Whether the file was created by protoc
3737
from *genFileInfo // The actual file protoc produced if not Path
3838
unique bool // True if this base name is unique in expected results
39-
ambiguious bool // True if there were more than one possible outputs that matched this file
39+
ambiguous bool // True if there were more than one possible outputs that matched this file
4040
}
4141

4242
func run(args []string) error {
@@ -170,8 +170,8 @@ func run(args []string) error {
170170
case !copyTo.unique:
171171
// not unique, no copy allowed
172172
case copyTo.from != nil:
173-
copyTo.ambiguious = true
174-
info.ambiguious = true
173+
copyTo.ambiguous = true
174+
info.ambiguous = true
175175
default:
176176
copyTo.from = info
177177
copyTo.created = true
@@ -190,8 +190,8 @@ func run(args []string) error {
190190
if err := ioutil.WriteFile(abs(f.path), data, 0644); err != nil {
191191
return err
192192
}
193-
case f.expected && f.ambiguious:
194-
fmt.Fprintf(buf, "Ambiguious output %v.\n", f.path)
193+
case f.expected && f.ambiguous:
194+
fmt.Fprintf(buf, "ambiguous output %v.\n", f.path)
195195
case f.from != nil:
196196
data, err := ioutil.ReadFile(f.from.path)
197197
if err != nil {

0 commit comments

Comments
 (0)