lib: Split collections into readable and writable
[nit.git] / tests / shootout_nsieve.nit
index a9a3923..0e2542b 100644 (file)
@@ -17,7 +17,7 @@
 meth nsieve(n: Int): Int
 do
        var count = 0
-       var array = new String.with_capacity(n)
+       var array = new Buffer.with_capacity(n)
        for i in [0..n[ do
                array[i] = 'o'
        end