Bar string should never be empty.
[cellular-automata.git] / 003 / src / life.erl
index 4c71251..4f3b2e5 100644 (file)
@@ -13,7 +13,7 @@
 -record(state, {x            :: non_neg_integer()
                ,y            :: non_neg_integer()
                ,n            :: pos_integer()
-               ,bar          :: string()
+               ,bar          :: nonempty_string()
                ,board        :: array()
                ,gen_count    :: pos_integer()
                ,gen_duration :: non_neg_integer()
This page took 0.02457 seconds and 4 git commands to generate.