parse-yaml: fix typo
[protos/libecoli.git] / examples / parse-yaml / parse-yaml.c
index 218fe78..4f46b22 100644 (file)
@@ -55,7 +55,7 @@ static void usage(const char *prgname)
                "      Set the output file.\n"
                "  -c\n"
                "  --"OPT_COMPLETE"\n"
-               "      Output the completion list."
+               "      Output the completion list.\n"
                , prgname);
 }
 
@@ -143,7 +143,7 @@ __dump_as_shell(FILE *f, const struct ec_parse *parse, size_t *seq)
                __dump_as_shell(f, child, seq);
        }
 
-       if (ec_parse_get_next(parse) != NULL) {
+       if (ec_parse_next(parse) != NULL) {
                fprintf(f, "ec_node%zu_next='ec_node%zu'\n",
                        cur_seq, *seq + 1);
        }