summaryrefslogtreecommitdiff
path: root/doc/syntax
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-18 02:48:35 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-18 02:48:35 +0000
commit87f099d0699f77162007217611c4568b6926092c (patch)
tree09600fd259f59c1d091affda48be1e26e7d29bfe /doc/syntax
parent831af844ef2d4d716da07eda331c50d1e73005e3 (diff)
* doc/syntax/literals.rdoc: Added 0o octal integers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'doc/syntax')
-rw-r--r--doc/syntax/literals.rdoc8
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/syntax/literals.rdoc b/doc/syntax/literals.rdoc
index 9b54d39..a17f51b 100644
--- a/doc/syntax/literals.rdoc
+++ b/doc/syntax/literals.rdoc
@@ -45,8 +45,10 @@ point numbers as well.
You can also write numbers in hexadecimal, octal or binary formats. For
hexadecimal numbers use a prefix of <tt>0x</tt>, for octal numbers use a
-prefix of <tt>0</tt>, for binary numbers use a prefix of <tt>0b</tt>. The
-alphabetic component of the number is not case-sensitive. Examples:
+prefix of <tt>0</tt> or <tt>0o</tt>, for binary numbers use a prefix of
+<tt>0b</tt>. The alphabetic component of the number is not case-sensitive.
+
+Examples:
0xaa
0xAa
@@ -56,6 +58,8 @@ alphabetic component of the number is not case-sensitive. Examples:
0XaA
0252
+ 0o252
+ 0O252
0b10101010
0B10101010