From 251fd0f4c1a177e36a243bc5d7986152aa40e2c0 Mon Sep 17 00:00:00 2001 From: Sashweana <31817237+Sashweana@users.noreply.github.com> Date: Sun, 17 Feb 2019 19:25:06 +0800 Subject: [PATCH] Fixed spelling error and added new information (#28509) * Fixed spelling error and added new information - changed from built in to built-in - added information for .count method * Removed redundant construct --- guide/english/ruby/ruby-string-methods/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/guide/english/ruby/ruby-string-methods/index.md b/guide/english/ruby/ruby-string-methods/index.md index 4d891fc898..2c7c6ab7ca 100644 --- a/guide/english/ruby/ruby-string-methods/index.md +++ b/guide/english/ruby/ruby-string-methods/index.md @@ -2,11 +2,11 @@ title: Ruby String Methods --- ## Ruby String Methods -Ruby has many built in methods to work with strings. Strings in Ruby by default are mutable and can be changed in place or a new string can be returned from a method. +Ruby has many built-in methods to work with strings. Strings in Ruby by default are mutable and can be changed in place or a new string can be returned from a method. ### Length: -* The `.length` property returns the number of characters in a string including white-space. +* The `.length` method returns the number of characters in a string including white-space. ```ruby "Hello".length #=> 5 "Hello World!".length #=> 12 @@ -24,7 +24,7 @@ Ruby has many built in methods to work with strings. Strings in Ruby by default ### Count: -* The `.count` method counts how many times a specific character(s) is found in a string. +* The `.count` method counts how many times a specific character(s) is found in a string. * This method is case-sensitive. ```ruby "HELLO".count('L') #=> 2