bytes: tweak doc to put forward the copy behavior of the slices
authorAlexis Laferrière <alexis.laf@xymus.net>
Tue, 25 Jul 2017 20:51:02 +0000 (16:51 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Tue, 22 Aug 2017 14:53:37 +0000 (10:53 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/core/bytes.nit

index 5b5fceb..882a6e9 100644 (file)
@@ -214,7 +214,7 @@ class Bytes
                return slice(st, ed - st + 1)
        end
 
-       # Returns a subset of the content of `self` starting at `from` and of length `count`
+       # Copy a subset of `self` starting at `from` and of `count` bytes
        #
        #     var b = "abcd".to_bytes
        #     assert b.slice(1, 2).hexdigest == "6263"
@@ -239,7 +239,7 @@ class Bytes
                return ret
        end
 
-       # Returns a copy of `self` starting at `from`
+       # Copy of `self` starting at `from`
        #
        #     var b = "abcd".to_bytes
        #     assert b.slice_from(1).hexdigest  == "626364"