[lxc-devel] [go-lxc/v2] Fix minor typos

caglar10ur on Github lxc-bot at linuxcontainers.org
Mon May 20 01:24:07 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 351 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190519/3fd96df7/attachment.bin>
-------------- next part --------------
From aadb55d0aed2fcfeac50cf661289ea69ca61097c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=2E=C3=87a=C4=9Flar=20Onur?= <caglar at 10ur.org>
Date: Sun, 19 May 2019 18:23:31 -0700
Subject: [PATCH] Fix minor typos
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: S.Çağlar Onur <caglar at 10ur.org>
---
 container.go | 8 ++++----
 lxc_test.go  | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/container.go b/container.go
index 22e9c71..5cada46 100644
--- a/container.go
+++ b/container.go
@@ -125,7 +125,7 @@ func (c *Container) Name() string {
 	return c.name()
 }
 
-// String returns the string represantation of container.
+// String returns the string representation of container.
 func (c *Container) String() string {
 	c.mu.RLock()
 	defer c.mu.RUnlock()
@@ -1818,7 +1818,7 @@ func (c *Container) Migrate(cmd uint, opts MigrateOptions) error {
 	return nil
 }
 
-// AttachInterface attaches specifed netdev to the container.
+// AttachInterface attaches specified netdev to the container.
 func (c *Container) AttachInterface(source, destination string) error {
 	c.mu.Lock()
 	defer c.mu.Unlock()
@@ -1839,7 +1839,7 @@ func (c *Container) AttachInterface(source, destination string) error {
 	return nil
 }
 
-// DetachInterface detaches specifed netdev from the container.
+// DetachInterface detaches specified netdev from the container.
 func (c *Container) DetachInterface(source string) error {
 	c.mu.Lock()
 	defer c.mu.Unlock()
@@ -1857,7 +1857,7 @@ func (c *Container) DetachInterface(source string) error {
 	return nil
 }
 
-// DetachInterfaceRename detaches specifed netdev from the container and renames it.
+// DetachInterfaceRename detaches specified netdev from the container and renames it.
 func (c *Container) DetachInterfaceRename(source, target string) error {
 	c.mu.Lock()
 	defer c.mu.Unlock()
diff --git a/lxc_test.go b/lxc_test.go
index 77d12a4..4494f5c 100644
--- a/lxc_test.go
+++ b/lxc_test.go
@@ -534,7 +534,7 @@ func TestControllable(t *testing.T) {
 	defer c.Release()
 
 	if !c.Controllable() {
-		t.Errorf("Controling the container failed...")
+		t.Errorf("Controlling the container failed...")
 	}
 }
 


More information about the lxc-devel mailing list