Skip to content

Commit

Permalink
[DOC] Remove \0 since it's aprt of octal notation
Browse files Browse the repository at this point in the history
A typo is fixed while at it.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
knu committed Sep 16, 2015
1 parent 5ac401c commit 11b804f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions doc/syntax/literals.rdoc
Expand Up @@ -87,7 +87,6 @@ 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), 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)
Expand All @@ -109,7 +108,7 @@ sequences are as follows:
\c\M-x same as above
\c? or \C-? delete, ASCII 7Fh (DEL)

Any other charater followed by a backslash is interpreted as the
Any other character followed by a backslash is interpreted as the
character itself.

Double-quote strings allow interpolation of other values using
Expand Down

0 comments on commit 11b804f

Please sign in to comment.