File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ type genFileInfo struct {
36
36
created bool // Whether the file was created by protoc
37
37
from * genFileInfo // The actual file protoc produced if not Path
38
38
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
40
40
}
41
41
42
42
func run (args []string ) error {
@@ -170,8 +170,8 @@ func run(args []string) error {
170
170
case ! copyTo .unique :
171
171
// not unique, no copy allowed
172
172
case copyTo .from != nil :
173
- copyTo .ambiguious = true
174
- info .ambiguious = true
173
+ copyTo .ambiguous = true
174
+ info .ambiguous = true
175
175
default :
176
176
copyTo .from = info
177
177
copyTo .created = true
@@ -190,8 +190,8 @@ func run(args []string) error {
190
190
if err := ioutil .WriteFile (abs (f .path ), data , 0644 ); err != nil {
191
191
return err
192
192
}
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 )
195
195
case f .from != nil :
196
196
data , err := ioutil .ReadFile (f .from .path )
197
197
if err != nil {
You can’t perform that action at this time.
0 commit comments