From c38cd326e8a2223677e87612e933f798f3d5496d Mon Sep 17 00:00:00 2001 From: Alisa Tsamaeva <59480088+isatsam@users.noreply.github.com> Date: Mon, 23 Oct 2023 22:43:17 +0300 Subject: [PATCH] Update ruby-doc links in Basic data types --- ruby/basic_ruby/basic_data_types.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruby/basic_ruby/basic_data_types.md b/ruby/basic_ruby/basic_data_types.md index 3ff9068eca6..d8a8bf3c032 100644 --- a/ruby/basic_ruby/basic_data_types.md +++ b/ruby/basic_ruby/basic_data_types.md @@ -158,7 +158,7 @@ puts 'Hello, #{name}' #=> "Hello, #{name}" #### Common string methods There are many useful string methods that are built into Ruby. You need to capitalize a word? No problem! Reverse a string? Easy peasy. Extract the binary subatomic algorithm from any regex grep? We don't know, but since this is Ruby, let's go with *YES*. -Just remember, strings have loads of methods provided to you for free, and you can find them all in the [Ruby docs](https://ruby-doc.org/core-3.1.2/String.html). If you're working with strings and need to do something, check the Ruby docs first and see if there's a method that does it for you. +Just remember, strings have loads of methods provided to you for free, and you can find them all in the [Ruby docs](https://ruby-doc.org/3.2.2/String.html). If you're working with strings and need to do something, check the Ruby docs first and see if there's a method that does it for you. Below is a quick recap of the more common string methods you might find yourself using: @@ -266,7 +266,7 @@ To create a symbol, simply put a colon at the beginning of some text: ~~~ #### Symbols vs. strings -To get a better idea of how symbols are stored in memory, give this a whirl in irb or a REPL. The [`#object_id` method](https://ruby-doc.org/core-3.1.2/Object.html#method-i-object_id) returns an integer identifier for an object. (And remember: in Ruby, *everything* is an object!) +To get a better idea of how symbols are stored in memory, give this a whirl in irb or a REPL. The [`#object_id` method](https://ruby-doc.org/3.2.2/Object.html#method-i-object_id) returns an integer identifier for an object. (And remember: in Ruby, *everything* is an object!) ~~~ruby "string" == "string" #=> true