Rename the copy_from_xxx methods for consistency.

This commit is contained in:
Nigel Tao committed 2017-10-13 10:59:47 +11:00
1 parent 66f712039b
commit 0384c5e4a8
7 files changed
+62 -68

No files matched your search

+2 -2
View File
@@ -110,8 +110,8 @@ pub func lzw_decoder.decode?(dst writer1, src reader1)() {
inv c < 256,
{
var expansion[] u8 = this.stack[s:]
// TODO: change write to copy_from_slice.
in.dst.write?(x:expansion)
// TODO: copy_from_slice should return n_copied.
in.dst.copy_from_slice?(x:expansion)
if expansion.length() == 0 { // Avoid "unused variable" C compiler warning.
}
break