commit | da163d3224e54fb4a5616b463f429a267c490ab0 | [log] [tgz] |
---|---|---|
author | Nigel Tao <nigeltao@golang.org> | Fri Feb 26 10:31:01 2016 +1100 |
committer | Nigel Tao <nigeltao@golang.org> | Fri Feb 26 10:31:01 2016 +1100 |
tree | 845fb5af573404f075b9b25622df062d764cbe4b | |
parent | 12528fe03377c314f32e3dc5e029835d42ccad90 [diff] |
Note that Decode's dst and src must not overlap.
diff --git a/decode.go b/decode.go index 666e170..8a1eca0 100644 --- a/decode.go +++ b/decode.go
@@ -47,7 +47,7 @@ // slice of dst if dst was large enough to hold the entire decoded block. // Otherwise, a newly allocated slice will be returned. // -// It is valid to pass a nil dst. +// The dst and src must not overlap. It is valid to pass a nil dst. func Decode(dst, src []byte) ([]byte, error) { dLen, s, err := decodedLen(src) if err != nil {