diff --git a/src/slices/example_test.go b/src/slices/example_test.go index 305745e8830..f775b88f6b7 100644 --- a/src/slices/example_test.go +++ b/src/slices/example_test.go @@ -325,9 +325,11 @@ func ExampleClone() { fmt.Println(clone) clone[2] = 10 fmt.Println(numbers) + fmt.Println(clone) // Output: // [0 42 -10 8] // [0 42 -10 8] + // [0 42 10 8] } func ExampleGrow() {