소스 검색

Fix a typo in daemon/networkdriver/ipallocator/allocator.go

Signed-off-by: Yuan Sun <sunyuan3@huawei.com>
Yuan Sun 10 년 전
부모
커밋
08331294bc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      daemon/networkdriver/ipallocator/allocator.go

+ 1 - 1
daemon/networkdriver/ipallocator/allocator.go

@@ -128,7 +128,7 @@ func (allocated *allocatedMap) checkIP(ip net.IP) (net.IP, error) {
 }
 }
 
 
 // return an available ip if one is currently available.  If not,
 // return an available ip if one is currently available.  If not,
-// return the next available ip for the nextwork
+// return the next available ip for the network
 func (allocated *allocatedMap) getNextIP() (net.IP, error) {
 func (allocated *allocatedMap) getNextIP() (net.IP, error) {
 	pos := big.NewInt(0).Set(allocated.last)
 	pos := big.NewInt(0).Set(allocated.last)
 	allRange := big.NewInt(0).Sub(allocated.end, allocated.begin)
 	allRange := big.NewInt(0).Sub(allocated.end, allocated.begin)