From bd829bb63a868e0fbce320db973b3ba35153bc32 Mon Sep 17 00:00:00 2001 From: Ignacio Capuccio Date: Sun, 23 Jun 2019 09:42:49 -0300 Subject: [PATCH] Fix English method examples for Ruby's guide (#29102) --- guide/english/ruby/ruby-arrays/index.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/guide/english/ruby/ruby-arrays/index.md b/guide/english/ruby/ruby-arrays/index.md index d43404a71c..5a9c1b4e89 100644 --- a/guide/english/ruby/ruby-arrays/index.md +++ b/guide/english/ruby/ruby-arrays/index.md @@ -33,21 +33,21 @@ mixed_array[2] # true You can check how many elements an array has with the `length` method: ```ruby -mixed_array.length # 3 +mixed_array.length # 4 [].length # 0 ``` You can check the first element of an array with the `first` method: + ```ruby mixed_array.first # 5 ``` You can check the last element of an array with the `last` method: + ```ruby -mixed_array.last # true +mixed_array.last # [1,2,3] ``` - - #### More Information: -Ruby array documentation +[Ruby array documentation](https://ruby-doc.org/core-2.4.2/Array.html)