]> Cypherpunks repositories - gostls13.git/commitdiff
fix typo in Append return type
authorRob Pike <r@golang.org>
Tue, 17 Nov 2009 05:56:38 +0000 (21:56 -0800)
committerRob Pike <r@golang.org>
Tue, 17 Nov 2009 05:56:38 +0000 (21:56 -0800)
R=rsc
https://golang.org/cl/155058

doc/effective_go.html

index 694f05d1019526b6ccd6cd8bc0784bfa11324d62..3ab05fc1cf2611f074fbb0f97e2864656bfd4d28 100644 (file)
@@ -1441,7 +1441,7 @@ then make the receiver for the method a value of that type.
 <pre>
 type ByteSlice []byte
 
-func (slice ByteSlice) Append(data []byte) []slice {
+func (slice ByteSlice) Append(data []byte) []byte {
        // Body exactly the same as above
 }
 </pre>