From 23c15ad9647000e3027b46b06bea8684ba2ddf6a Mon Sep 17 00:00:00 2001 From: Youssef Date: Mon, 25 Nov 2024 10:31:03 +0000 Subject: [PATCH 1/2] Project: Sub Strings: Remove unnecessary note As of Ruby 1.9, hashes also maintain order, so the output will be always the same --- ruby/basic_ruby_projects/project_sub_strings.md | 1 - 1 file changed, 1 deletion(-) diff --git a/ruby/basic_ruby_projects/project_sub_strings.md b/ruby/basic_ruby_projects/project_sub_strings.md index 7816c25f300..0cd724ccec7 100644 --- a/ruby/basic_ruby_projects/project_sub_strings.md +++ b/ruby/basic_ruby_projects/project_sub_strings.md @@ -28,7 +28,6 @@ Next, make sure your method can handle multiple words: => { "down" => 1, "go" => 1, "going" => 1, "how" => 2, "howdy" => 1, "it" => 2, "i" => 3, "own" => 1, "part" => 1, "partner" => 1, "sit" => 1 } ``` -Please note the order of your keys might be different. **Quick Tips:** From 958e235c6e5202107f16e4a8d09a746c97d9aa3e Mon Sep 17 00:00:00 2001 From: Youssef Date: Mon, 25 Nov 2024 10:49:23 +0000 Subject: [PATCH 2/2] Update project_sub_strings.md --- ruby/basic_ruby_projects/project_sub_strings.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruby/basic_ruby_projects/project_sub_strings.md b/ruby/basic_ruby_projects/project_sub_strings.md index 0cd724ccec7..28362eb6e15 100644 --- a/ruby/basic_ruby_projects/project_sub_strings.md +++ b/ruby/basic_ruby_projects/project_sub_strings.md @@ -28,8 +28,8 @@ Next, make sure your method can handle multiple words: => { "down" => 1, "go" => 1, "going" => 1, "how" => 2, "howdy" => 1, "it" => 2, "i" => 3, "own" => 1, "part" => 1, "partner" => 1, "sit" => 1 } ``` - **Quick Tips:** - Recall how to turn strings into arrays and arrays into strings. +