diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-18 03:39:49 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-18 03:39:49 +0000 |
commit | bfd227dff89979cfdf7ce8a3565dab17fce1be5c (patch) | |
tree | 8dea211a4bc465a4936d38f74507edce2d8bdc7b /doc/syntax/literals.rdoc | |
parent | 28f3a7e3d5da9cbb00a75d29dcacce3a82d2b975 (diff) | |
download | ruby-bfd227dff89979cfdf7ce8a3565dab17fce1be5c.tar.gz |
* doc/syntax/*.rdoc: separated modifier at sentence.
[ci skip][fix GH-1121] Patch by @clandry94
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'doc/syntax/literals.rdoc')
-rw-r--r-- | doc/syntax/literals.rdoc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/syntax/literals.rdoc b/doc/syntax/literals.rdoc index 9631575320..f5b9738868 100644 --- a/doc/syntax/literals.rdoc +++ b/doc/syntax/literals.rdoc @@ -133,7 +133,7 @@ You may also create strings using <tt>%</tt>: %(1 + 1 is #{1 + 1}) #=> "1 + 1 is 2" There are two different types of <tt>%</tt> strings <tt>%q(...)</tt> behaves -like a single-quote string (no interpolation or character escaping) while +like a single-quote string (no interpolation or character escaping), while <tt>%Q</tt> behaves as a double-quote string. See Percent Strings below for more discussion of the syntax of percent strings. @@ -259,7 +259,7 @@ Like strings, a single-quote may be used to disable interpolation: :'my_symbol#{1 + 1}' #=> :"my_symbol\#{1 + 1}" -When creating a Hash there is a special syntax for referencing a Symbol as +When creating a Hash, there is a special syntax for referencing a Symbol as well. == Arrays @@ -344,7 +344,7 @@ This proc will add one to its argument. == Percent Strings -Besides <tt>%(...)</tt> which creates a String, The <tt>%</tt> may create +Besides <tt>%(...)</tt> which creates a String, the <tt>%</tt> may create other types of object. As with strings, an uppercase letter allows interpolation and escaped characters while a lowercase letter disables them. |