ruby-changes:39796
From: knu <ko1@a...>
Date: Wed, 16 Sep 2015 15:31:49 +0900 (JST)
Subject: [ruby-changes:39796] knu:r51877 (trunk): [DOC] `\0` is interpreted as NUL only if not followed by an octal digit.
knu 2015-09-16 15:31:39 +0900 (Wed, 16 Sep 2015) New Revision: 51877 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51877 Log: [DOC] `\0` is interpreted as NUL only if not followed by an octal digit. Modified files: trunk/doc/syntax/literals.rdoc Index: doc/syntax/literals.rdoc =================================================================== --- doc/syntax/literals.rdoc (revision 51876) +++ doc/syntax/literals.rdoc (revision 51877) @@ -87,7 +87,7 @@ Double-quote strings allow escaped chara https://github.com/ruby/ruby/blob/trunk/doc/syntax/literals.rdoc#L87 newline, <tt>\t</tt> for tab, etc. The full list of supported escape sequences are as follows: - \0 null, ASCII 00h (NUL) + \0 null, ASCII 00h (NUL), only if not followed by an octal digit ([0-7]) \a bell, ASCII 07h (BEL) \b backspace, ASCII 08h (BS) \t horizontal tab, ASCII 09h (TAB) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/