]> Cypherpunks.ru repositories - gostls13.git/commitdiff
container/list: fix typo in function comments
authorYasser Abdolmaleki <yasser@yasser.ca>
Sun, 31 May 2020 00:42:34 +0000 (17:42 -0700)
committerRobert Griesemer <gri@golang.org>
Sun, 31 May 2020 02:07:28 +0000 (02:07 +0000)
The correct word to use here is 'another' not 'an other'

Change-Id: Ie4f748ae94a5945dceb52779222ffd8cf36b8845
Reviewed-on: https://go-review.googlesource.com/c/go/+/235838
Reviewed-by: Robert Griesemer <gri@golang.org>
src/container/list/list.go

index cc9ff0988cd863f68f03688bb6521d6c1945242f..210424ceed7b7cac8bb793f9614845aa3ecc2080 100644 (file)
@@ -219,7 +219,7 @@ func (l *List) MoveAfter(e, mark *Element) {
        l.move(e, mark)
 }
 
-// PushBackList inserts a copy of an other list at the back of list l.
+// PushBackList inserts a copy of another list at the back of list l.
 // The lists l and other may be the same. They must not be nil.
 func (l *List) PushBackList(other *List) {
        l.lazyInit()
@@ -228,7 +228,7 @@ func (l *List) PushBackList(other *List) {
        }
 }
 
-// PushFrontList inserts a copy of an other list at the front of list l.
+// PushFrontList inserts a copy of another list at the front of list l.
 // The lists l and other may be the same. They must not be nil.
 func (l *List) PushFrontList(other *List) {
        l.lazyInit()