Skip to content

Commit

Permalink
Fix comments mistakes
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Morozov <[email protected]>
  • Loading branch information
LK4D4 committed Feb 12, 2015
1 parent e29807a commit bf7b359
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion link_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ func LinkAdd(link Link) error {
return nil
}

// LinkAdd adds a new link device. Either Index or Name must be set in
// LinkDel deletes link device. Either Index or Name must be set in
// the link object for it to be deleted. The other values are ignored.
// Equivalent to: `ip link del $link`
func LinkDel(link Link) error {
Expand Down
2 changes: 1 addition & 1 deletion link_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func testLinkAddDel(t *testing.T, link Link) {
if ipv, ok := link.(*IPVlan); ok {
other, ok := result.(*IPVlan)
if !ok {
t.Fatal("Result of create is not a vxlan")
t.Fatal("Result of create is not a ipvlan")
}
if ipv.Mode != other.Mode {
t.Fatalf("Got unexpected mode: %d, expected: %d", other.Mode, ipv.Mode)
Expand Down

0 comments on commit bf7b359

Please sign in to comment.