commit | 70da14d4e90bb736e5428da91a1a05fdfaddda81 | [log] [tgz] |
---|---|---|
author | Juliusz Chroboczek <jch@pps.univ-paris-diderot.fr> | Tue Nov 01 19:58:40 2016 +0100 |
committer | Juliusz Chroboczek <jch@pps.univ-paris-diderot.fr> | Tue Nov 01 19:58:40 2016 +0100 |
tree | 8a1becdf752c8f0f0c069534f98c4a40a021b14d | |
parent | c7b68225bd18b949df4a33394351f900ff273478 [diff] [blame] |
Mention that the append trick for copying fails on the empty slice
diff --git a/SliceTricks.md b/SliceTricks.md index 2df9de2..f34a66e 100644 --- a/SliceTricks.md +++ b/SliceTricks.md
@@ -11,7 +11,7 @@ ```go b = make([]T, len(a)) copy(b, a) -// or +// or, if a is not the empty slice, b = append([]T(nil), a...) ```