From dcd21aaabf474beefbae6c0c56113b1b8e325a2f Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Sun, 25 Dec 2016 12:14:17 +0100 Subject: [PATCH] org: call set_init_state() in tut22 * doc/org/tut22.org: Here. --- doc/org/tut22.org | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/org/tut22.org b/doc/org/tut22.org index 35f68416b..1c2745aaf 100644 --- a/doc/org/tut22.org +++ b/doc/org/tut22.org @@ -36,6 +36,9 @@ This example demonstrates how to create an automaton and then print it. // States are numbered from 0. aut->new_states(3); + // The default initial state is 0, but it is always better to + // specify it explicitely. + aut->set_init_state(0U); // new_edge() takes 3 mandatory parameters: source state, // destination state, and label. A last optional parameter can be @@ -95,6 +98,9 @@ State: 2 # States are numbered from 0. aut.new_states(3) + # The default initial state is 0, but it is always better to + # specify it explicitely. + aut.set_init_state(0) # new_edge() takes 3 mandatory parameters: source state, destination state, and # label. A last optional parameter can be used to specify membership to