From 327980b003c7632be2c55ecf99a5b8838dc3ec46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Tue, 25 Mar 2014 16:48:13 +0100 Subject: [PATCH] yamerl_parser: Fix two comments --- src/yamerl_parser.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/yamerl_parser.erl b/src/yamerl_parser.erl index e70ffb0..12856d6 100644 --- a/src/yamerl_parser.erl +++ b/src/yamerl_parser.erl @@ -3390,7 +3390,7 @@ queue_flow_scalar_token(Chars, Line, Col, Delta, Parser, find_next_token(Chars, Line, Col, Delta, Parser2). unescape_char($0) -> 16#0; %% \0 = NUL [42] -unescape_char($a) -> 16#7; %% \7 = BELL [43] +unescape_char($a) -> 16#7; %% \a = BELL [43] unescape_char($b) -> $\b; %% \b = BS [44] unescape_char($t) -> $\t; %% \t = TAB [45] unescape_char($n) -> $\n; %% \n = LF [46] @@ -4272,8 +4272,8 @@ invalid_option(Option) -> {token_fun, _} -> Error#yamerl_invalid_option{ text = "Invalid value for option \"token_fun\": " - "it must be a function taking the parser state " - "as its sole argument, or the atom 'acc' or 'drop'" + "it must be a function taking the next token as " + "its sole argument, or the atom 'acc' or 'drop'" }; _ -> yamerl_errors:format(Error, "Unknown option \"~w\"", [Option])