ruby-changes:41211
From: kazu <ko1@a...>
Date: Thu, 24 Dec 2015 23:30:28 +0900 (JST)
Subject: [ruby-changes:41211] kazu:r53283 (trunk): fix typos
kazu 2015-12-24 23:30:13 +0900 (Thu, 24 Dec 2015) New Revision: 53283 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53283 Log: fix typos Modified files: trunk/ChangeLog trunk/parse.y Index: ChangeLog =================================================================== --- ChangeLog (revision 53282) +++ ChangeLog (revision 53283) @@ -8,7 +8,7 @@ Thu Dec 24 18:43:19 2015 Nobuyoshi Naka https://github.com/ruby/ruby/blob/trunk/ChangeLog#L8 (rb_compile_bug): deprecate internal functions. * parse.y (parser_yyerror): construct exception message with - source code and carret. + source code and caret. Thu Dec 24 17:25:42 2015 Nobuyoshi Nakada <nobu@r...> Index: parse.y =================================================================== --- parse.y (revision 53282) +++ parse.y (revision 53283) @@ -5410,7 +5410,7 @@ parser_yyerror(struct parser_params *par https://github.com/ruby/ruby/blob/trunk/parse.y#L5410 const int max_line_margin = 30; const char *p, *pe; const char *pre = "", *post = ""; - const char *code = "", *carret = "", *newline = ""; + const char *code = "", *caret = "", *newline = ""; char *buf; long len; int i; @@ -5446,7 +5446,7 @@ parser_yyerror(struct parser_params *par https://github.com/ruby/ruby/blob/trunk/parse.y#L5446 i = (int)(lex_p - p); buf = ALLOCA_N(char, i+2); code = p; - carret = p2 = buf; + caret = p2 = buf; while (i-- > 0) { *p2++ = *p++ == '\t' ? '\t' : ' '; } @@ -5460,7 +5460,7 @@ parser_yyerror(struct parser_params *par https://github.com/ruby/ruby/blob/trunk/parse.y#L5460 compile_error(PARSER_ARG "%s%s""%s%.*s%s%s""%s%s", msg, newline, pre, (int)len, code, post, newline, - pre, carret); + pre, caret); #else dispatch1(parse_error, STR_NEW2(msg)); ripper_error(); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/