diff --git a/ChangeLog b/ChangeLog index 8bb6d9135c..853859d7c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Dec 18 11:45:26 2012 Eric Hodel + + * doc/syntax/literals.rdoc: Added 0o octal integers. + Tue Dec 18 12:28:52 2012 Martin Bosslet * test/openssl/test_ssl.rb: Use :TLSv1_2_client explicitly in diff --git a/doc/syntax/literals.rdoc b/doc/syntax/literals.rdoc index 9b54d398d6..a17f51bd5a 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 0x, for octal numbers use a -prefix of 0, for binary numbers use a prefix of 0b. The -alphabetic component of the number is not case-sensitive. Examples: +prefix of 0 or 0o, for binary numbers use a prefix of +0b. 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