Skip to content

Commit

Permalink
fix old typo (#312)
Browse files Browse the repository at this point in the history
* fix old typo

* fix another old typo
  • Loading branch information
wenovus authored and gcsl committed Sep 13, 2019
1 parent fd57a44 commit 5b5bc6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ygen/codegen.go
Expand Up @@ -60,7 +60,7 @@ type GeneratorConfig struct {
// string is not specified, the location of the library is utilised.
Caller string
// YANGParseOptions provides the options that should be handed to the
// //third_party/golang/goyang/pkg/yang library. These specify how the
// github.com/openconfig/goyang/pkg/yang library. These specify how the
// input YANG files should be parsed.
YANGParseOptions yang.Options
// GenerateFakeRoot specifies whether an entity that represents the
Expand Down
2 changes: 1 addition & 1 deletion ygen/genstate_test.go
Expand Up @@ -2270,7 +2270,7 @@ func TestBuildDirectoryDefinitions(t *testing.T) {
t.Errorf("%s: buildDirectoryDefinitions(CompressOCPaths: %v, Language: %s, excludeState: %v): %s did not have matching path, got: %v, want: %v", tt.name, c.compress, langName(c.lang), c.excludeState, gotName, gotDir.Path, wantDir.Path)
}

if wantDir.Name != wantDir.Name {
if gotDir.Name != wantDir.Name {
t.Errorf("%s buildDirectoryDefinitions(CompressOCPaths: %v, Language: %s, excludeState: %v): %s did not have matching name, got: %v, want: %v", tt.name, c.compress, langName(c.lang), c.excludeState, gotDir.Path, gotDir.Name, wantDir.Name)
}
}
Expand Down

0 comments on commit 5b5bc6b

Please sign in to comment.