summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-11 20:16:27 +0000
committerstomar <stomar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-11 20:16:27 +0000
commit7215cecfb5c14cdea23e49d7914c2274e3817415 (patch)
tree9fcbbe1cbd51f362f50068d505507743595905c7 /string.c
parent91fc0a91037c08d56a43e852318982c9035e1c99 (diff)
string.c: [DOC] grammar fixes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/string.c b/string.c
index 3106a984c1..435954d313 100644
--- a/string.c
+++ b/string.c
@@ -2607,11 +2607,10 @@ str_uplus(VALUE str)
* call-seq:
* -str -> str (frozen)
*
- * Return a frozen, possibly pre-existing
- * copy of the string.
+ * Returns a frozen, possibly pre-existing copy of the string.
*
- * String will be deduplicated as long as it is not tainted,
- * or has any instance vars set on it.
+ * The string will be deduplicated as long as it is not tainted,
+ * or has any instance variables set on it.
*/
static VALUE
str_uminus(VALUE str)
@@ -3148,7 +3147,7 @@ rb_str_hash_cmp(VALUE str1, VALUE str2)
* call-seq:
* str.hash -> integer
*
- * Return a hash based on the string's length, content and encoding.
+ * Returns a hash based on the string's length, content and encoding.
*
* See also Object#hash.
*/
@@ -9278,7 +9277,7 @@ rb_str_crypt(VALUE str, VALUE salt)
* call-seq:
* str.ord -> integer
*
- * Return the <code>Integer</code> ordinal of a one-character string.
+ * Returns the <code>Integer</code> ordinal of a one-character string.
*
* "a".ord #=> 97
*/
@@ -9613,7 +9612,7 @@ rb_str_rpartition(VALUE str, VALUE sep)
* str.start_with?([prefixes]+) -> true or false
*
* Returns true if +str+ starts with one of the +prefixes+ given.
- * Each +prefixes+ should be a String or a Regexp.
+ * Each of the +prefixes+ should be a String or a Regexp.
*
* "hello".start_with?("hell") #=> true
* "hello".start_with?(/H/i) #=> true