aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-16 06:31:39 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-16 06:31:39 +0000
commit2d26701d2a41e8f8e0db987ca8e6d4cba3e08e98 (patch)
tree0ae31f314437d13ed5fc55ebeb63f9b5015608a4 /doc
parent98289e92f80405fcc8af7b5bb14ff1d02e9ca9f4 (diff)
downloadruby-2d26701d2a41e8f8e0db987ca8e6d4cba3e08e98.tar.gz
[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
Diffstat (limited to 'doc')
-rw-r--r--doc/syntax/literals.rdoc2
1 files changed, 1 insertions, 1 deletions
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 <tt>\n</tt> for
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)