Explorar o código

fix a small typo

Jeff %!s(int64=11) %!d(string=hai) anos
pai
achega
733e82d681
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      eBook/07.5.md

+ 1 - 1
eBook/07.5.md

@@ -31,7 +31,7 @@ func AppendByte(slice []byte, data ...byte) []byte {
 	m := len(slice)
 	n := m + len(data)
 	if n > cap(slice) { // if necessary, reallocate
-		// allocate doublke what's needed, for future growth.
+		// allocate double what's needed, for future growth.
 		newSlice := make([]byte, (n+1)*2)
 		copy(newSlice, slice)
 		slice = newSlice