Skip to content

Commit ce46100

Browse files
committed
doc: fix typo
Signed-off-by: Yan Zhu <yanzhu@alauda.io>
1 parent e294528 commit ce46100

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

libnetwork/bitseq/sequence.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var (
3232
ErrBitAllocated = errors.New("requested bit is already allocated")
3333
)
3434

35-
// Handle contains the sequece representing the bitmask and its identifier
35+
// Handle contains the sequence representing the bitmask and its identifier
3636
type Handle struct {
3737
bits uint64
3838
unselected uint64

libnetwork/cmd/networkdb-test/dbclient/ndbClient.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -368,9 +368,9 @@ func doClusterPeers(ips []string, args []string) {
368368
if node.result != expectedPeers {
369369
failed = true
370370
if retry == maxRetry-1 {
371-
log.Fatalf("Expected peers from %s missmatch %d != %d", node.id, expectedPeers, node.result)
371+
log.Fatalf("Expected peers from %s mismatch %d != %d", node.id, expectedPeers, node.result)
372372
} else {
373-
logrus.Warnf("Expected peers from %s missmatch %d != %d", node.id, expectedPeers, node.result)
373+
logrus.Warnf("Expected peers from %s mismatch %d != %d", node.id, expectedPeers, node.result)
374374
}
375375
time.Sleep(1 * time.Second)
376376
}
@@ -429,9 +429,9 @@ func doNetworkPeers(ips []string, args []string) {
429429
if node.result != expectedPeers {
430430
failed = true
431431
if retry == maxRetry-1 {
432-
log.Fatalf("Expected peers from %s missmatch %d != %d", node.id, expectedPeers, node.result)
432+
log.Fatalf("Expected peers from %s mismatch %d != %d", node.id, expectedPeers, node.result)
433433
} else {
434-
logrus.Warnf("Expected peers from %s missmatch %d != %d", node.id, expectedPeers, node.result)
434+
logrus.Warnf("Expected peers from %s mismatch %d != %d", node.id, expectedPeers, node.result)
435435
}
436436
time.Sleep(1 * time.Second)
437437
}

libnetwork/diagnostic/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func (s *Server) EnableDiagnostic(ip string, port int) {
9595
s.srv = srv
9696
s.enable = 1
9797
go func(n *Server) {
98-
// Ingore ErrServerClosed that is returned on the Shutdown call
98+
// Ignore ErrServerClosed that is returned on the Shutdown call
9999
if err := srv.ListenAndServe(); err != nil && err != http.ErrServerClosed {
100100
logrus.Errorf("ListenAndServe error: %s", err)
101101
atomic.SwapInt32(&n.enable, 0)

libnetwork/osl/interface_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ func (n *networkNamespace) AddInterface(srcName, dstPrefix string, options ...If
297297
logrus.Errorf("renaming interface (%s->%s) failed, %v after config error %v", i.DstName(), i.SrcName(), nerr, err)
298298
}
299299
if nerr := nlh.LinkSetNsFd(iface, ns.ParseHandlerInt()); nerr != nil {
300-
logrus.Errorf("moving inteface %s to host ns failed, %v, after config error %v", i.SrcName(), nerr, err)
300+
logrus.Errorf("moving interface %s to host ns failed, %v, after config error %v", i.SrcName(), nerr, err)
301301
}
302302
return err
303303
}

libnetwork/osl/namespace_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ func NewSandbox(key string, osCreate, isRestore bool) (Sandbox, error) {
227227
logrus.Warnf("Failed to set the timeout on the sandbox netlink handle sockets: %v", err)
228228
}
229229
// In live-restore mode, IPV6 entries are getting cleaned up due to below code
230-
// We should retain IPV6 configrations in live-restore mode when Docker Daemon
230+
// We should retain IPV6 configurations in live-restore mode when Docker Daemon
231231
// comes back. It should work as it is on other cases
232232
// As starting point, disable IPv6 on all interfaces
233233
if !isRestore && !n.isDefault {

libnetwork/test/integration/dnet/helpers.bash

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ function test_overlay() {
332332

333333
start=1
334334
end=3
335-
# Setup overlay network and connect containers ot it
335+
# Setup overlay network and connect containers to it
336336
if [ -z "${2}" -o "${2}" != "skip_add" ]; then
337337
if [ -z "${2}" -o "${2}" != "internal" ]; then
338338
dnet_cmd $(inst_id2port 1) network create -d overlay multihost
@@ -367,7 +367,7 @@ function test_overlay() {
367367
done
368368
done
369369

370-
# Setup bridge network and connect containers ot it
370+
# Setup bridge network and connect containers to it
371371
if [ -z "${2}" -o "${2}" != "skip_add" ]; then
372372
if [ -z "${2}" -o "${2}" != "internal" ]; then
373373
dnet_cmd $(inst_id2port 1) network create -d bridge br1
@@ -445,7 +445,7 @@ function test_overlay_singlehost() {
445445

446446
start=1
447447
end=3
448-
# Setup overlay network and connect containers ot it
448+
# Setup overlay network and connect containers to it
449449
dnet_cmd $(inst_id2port 1) network create -d overlay multihost
450450
for i in `seq ${start} ${end}`;
451451
do
@@ -484,7 +484,7 @@ function test_overlay_hostmode() {
484484

485485
start=1
486486
end=2
487-
# Setup overlay network and connect containers ot it
487+
# Setup overlay network and connect containers to it
488488
dnet_cmd $(inst_id2port 1) network create -d overlay multihost1
489489
dnet_cmd $(inst_id2port 1) network create -d overlay multihost2
490490
dnet_cmd $(inst_id2port 1) network ls

0 commit comments

Comments
 (0)