lib/array: make `copy_to` public
authorJean Privat <jean@pryen.org>
Fri, 5 Dec 2014 01:52:30 +0000 (20:52 -0500)
committerJean Privat <jean@pryen.org>
Fri, 5 Dec 2014 01:52:30 +0000 (20:52 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>

lib/standard/collection/array.nit

index 331a9d9..add6077 100644 (file)
@@ -109,7 +109,7 @@ abstract class AbstractArrayRead[E]
        #     var b = [10, 20, 30, 40, 50]
        #     a.copy_to(1, 2, b, 2)
        #     assert b      ==  [10, 20, 2, 3, 50]
-       protected fun copy_to(start: Int, len: Int, dest: AbstractArray[E], new_start: Int)
+       fun copy_to(start: Int, len: Int, dest: AbstractArray[E], new_start: Int)
        do
                # TODO native one
                var i = len