]> granicus.if.org Git - flex/commitdiff
add missing argument to call to yylex in manual
authorWill Estes <wlestes@users.sourceforge.net>
Fri, 22 Jun 2012 20:28:57 +0000 (20:28 +0000)
committerWill Estes <wlestes@users.sourceforge.net>
Fri, 22 Jun 2012 20:28:57 +0000 (20:28 +0000)
doc/flex.texi

index 9513625a736b75c5ac089cbaa5c95fd9339c54a8..a582152cc926214654cc96286d1dc411076db0de 100644 (file)
@@ -4274,7 +4274,7 @@ it when done:
 
         yylex_init(&scanner);
 
-        while ((tok=yylex()) > 0)
+        while ((tok=yylex(scanner)) > 0)
             printf("tok=%d  yytext=%s\n", tok, yyget_text(scanner));
 
         yylex_destroy(scanner);