Merge: doc: fixed some typos and other misc. corrections
[nit.git] / tests / bench_tak.nit
index 5266e93..ac128d3 100644 (file)
@@ -15,7 +15,7 @@
 # limitations under the License.
 
 
-meth tak(x: Int, y: Int, z: Int): Int
+fun tak(x: Int, y: Int, z: Int): Int
 do
        if not y < x then
                return z
@@ -27,4 +27,7 @@ do
        end
 end
 
-printn(tak(37,12,6))
+var n = 17
+if args.not_empty then n = args.first.to_i
+
+print(tak(n,12,6))