Skip to content

Commit

Permalink
Fix: Typo (hoanhan101#42)
Browse files Browse the repository at this point in the history
nows -> now
  • Loading branch information
safakozdek authored Aug 24, 2020
1 parent 9c840f5 commit 616ce6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/language/slice.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func main() {

// Append a new value to the slice. This line of code raises a red flag.
// We have x is a slice with length 7, capacity 7. Since the length and capacity is the same,
// append doubles its size then copy values over. x nows points to different memory block and
// append doubles its size then copy values over. x now points to different memory block and
// has a length of 8, capacity of 14.
x = append(x, 800)

Expand Down

0 comments on commit 616ce6f

Please sign in to comment.