]> Cypherpunks repositories - gostls13.git/commitdiff
net: fix typo
authorMikio Hara <mikioh.mikioh@gmail.com>
Mon, 14 Dec 2015 03:16:13 +0000 (12:16 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Mon, 14 Dec 2015 08:26:42 +0000 (08:26 +0000)
Change-Id: I064a7e21bdc55d7f72147bcf6cfb91b96dbb77bb
Reviewed-on: https://go-review.googlesource.com/17795
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
src/net/interface_windows.go

index 55c48210906cab77a4299f04984abd5ba193c9d5..d14b60f283e12ef9070ff9f1caccc1abbd2f5a97 100644 (file)
@@ -71,7 +71,7 @@ func interfaceTable(ifindex int) ([]Interface, error) {
        var ift []Interface
        for _, aa := range aas {
                index := aa.IfIndex
-               if index == 0 { // ipv6IfIndex is a sustitute for ifIndex
+               if index == 0 { // ipv6IfIndex is a substitute for ifIndex
                        index = aa.Ipv6IfIndex
                }
                if ifindex == 0 || ifindex == int(index) {
@@ -128,7 +128,7 @@ func interfaceAddrTable(ifi *Interface) ([]Addr, error) {
        var ifat []Addr
        for _, aa := range aas {
                index := aa.IfIndex
-               if index == 0 { // ipv6IfIndex is a sustitute for ifIndex
+               if index == 0 { // ipv6IfIndex is a substitute for ifIndex
                        index = aa.Ipv6IfIndex
                }
                var pfx4, pfx6 []IPNet
@@ -250,7 +250,7 @@ func interfaceMulticastAddrTable(ifi *Interface) ([]Addr, error) {
        var ifat []Addr
        for _, aa := range aas {
                index := aa.IfIndex
-               if index == 0 { // ipv6IfIndex is a sustitute for ifIndex
+               if index == 0 { // ipv6IfIndex is a substitute for ifIndex
                        index = aa.Ipv6IfIndex
                }
                if ifi == nil || ifi.Index == int(index) {