From 5ac401c8dcd6d79c21aea09ee180ce1ba1a9fc18 Mon Sep 17 00:00:00 2001 From: knu Date: Wed, 16 Sep 2015 06:31:39 +0000 Subject: [DOC] `\0` is interpreted as NUL only if not followed by an octal digit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- doc/syntax/literals.rdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/syntax/literals.rdoc b/doc/syntax/literals.rdoc index 4d8a9a210d..32f106360a 100644 --- a/doc/syntax/literals.rdoc +++ b/doc/syntax/literals.rdoc @@ -87,7 +87,7 @@ Double-quote strings allow escaped characters such as \n for newline, \t 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) -- cgit v1.2.3