Removed extra ;, spelling fix in comment.
authorthurston <thurston@052ea7fc-9027-0410-9066-f65837a77df0>
Fri, 2 Mar 2007 18:10:58 +0000 (18:10 +0000)
committerthurston <thurston@052ea7fc-9027-0410-9066-f65837a77df0>
Fri, 2 Mar 2007 18:10:58 +0000 (18:10 +0000)
git-svn-id: http://svn.complang.org/ragel/trunk@118 052ea7fc-9027-0410-9066-f65837a77df0

examples/atoi.rl

index 0d354a0..010de3e 100644 (file)
@@ -17,7 +17,7 @@ int atoi( char *str )
 {
        char *p = str;
        int cs, val = 0;
-       bool neg = false;;
+       bool neg = false;
 
        %%{
                action see_neg {
@@ -32,7 +32,7 @@ int atoi( char *str )
                        ( '-'@see_neg | '+' )? ( digit @add_digit )+ 
                        '\n' @{ fbreak; };
 
-               # Inintialize and execute.
+               # Initialize and execute.
                write init;
                write exec noend;
        }%%