Merge: doc: fixed some typos and other misc. corrections
[nit.git] / lib / actors / examples / chameneos-redux / chameneosredux.nit
index 9143e22..71e54e6 100644 (file)
@@ -17,7 +17,7 @@
 #
 # Complete description of the chameneos-redux :
 # https://benchmarksgame.alioth.debian.org/u64q/chameneosredux-description.html#chameneosredux
-module chameneosredux is no_warning("missing-doc")
+module chameneosredux is example, no_warning("missing-doc")
 
 import actors
 
@@ -83,8 +83,8 @@ redef class Sys
        fun blue: Int do return 0
        fun red: Int do return 1
        fun yellow: Int do return 2
-       var numbers: Array[String] = ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]
-       var colors: Array[String] = ["blue", "red", "yellow"]
+       var numbers = ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"]
+       var colors = ["blue", "red", "yellow"]
        # Matrix for complementing colors
        var complements: Array[Array[Int]] = [[0, 2, 1],
                                              [2, 1, 0],
@@ -128,7 +128,7 @@ fun work(n, nb_colors : Int ) do
 
        for c in creatures do c.async.run
 
-       active_actors.is_empty
+       active_actors.wait
 
        var total = 0
        for c in creatures do