Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Improve doc consistency

  • Loading branch information...
commit 81f110657b2a59b76926b4b3d89f685420e32a0e 1 parent cac1564
Norman Clarke norman authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 activesupport/lib/active_support/multibyte/chars.rb
6 activesupport/lib/active_support/multibyte/chars.rb
View
@@ -93,7 +93,7 @@ def reverse
chars(Unicode.unpack_graphemes(@wrapped_string).reverse.flatten.pack('U*'))
end
- # Limit the byte size of the string to a number of bytes without breaking characters. Usable
+ # Limits the byte size of the string to a number of bytes without breaking characters. Usable
# when the storage for a string is limited for some reason.
#
# Example:
@@ -102,7 +102,7 @@ def limit(limit)
slice(0...translate_offset(limit))
end
- # Convert characters in the string to uppercase.
+ # Converts characters in the string to uppercase.
#
# Example:
# 'Laurent, où sont les tests ?'.mb_chars.upcase.to_s # => "LAURENT, OÙ SONT LES TESTS ?"
@@ -110,7 +110,7 @@ def upcase
chars Unicode.upcase(@wrapped_string)
end
- # Convert characters in the string to lowercase.
+ # Converts characters in the string to lowercase.
#
# Example:
# 'VĚDA A VÝZKUM'.mb_chars.downcase.to_s # => "věda a výzkum"
Please sign in to comment.
Something went wrong with that request. Please try again.