From 7750653501acac5add0ed9023031c58fc6e50bbf Mon Sep 17 00:00:00 2001 From: Gabor Szabo Date: Wed, 30 Jun 2021 18:26:54 +0300 Subject: [PATCH] format --- crystal/examples/regexes/gsub.cr | 6 +++--- crystal/examples/strings/split_characters.cr | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/crystal/examples/regexes/gsub.cr b/crystal/examples/regexes/gsub.cr index f25da0821..13d02a381 100644 --- a/crystal/examples/regexes/gsub.cr +++ b/crystal/examples/regexes/gsub.cr @@ -1,5 +1,5 @@ puts "The cat is here".gsub("cat", "dog") -puts "The cat is here".gsub("cat") {"dog"} +puts "The cat is here".gsub("cat") { "dog" } -puts "The cat is here".gsub("cat") {|match| match.reverse } -puts "The cat is here".gsub(/c../) {|match| match.reverse } +puts "The cat is here".gsub("cat") { |match| match.reverse } +puts "The cat is here".gsub(/c../) { |match| match.reverse } diff --git a/crystal/examples/strings/split_characters.cr b/crystal/examples/strings/split_characters.cr index bae558c0b..83aaf99c9 100644 --- a/crystal/examples/strings/split_characters.cr +++ b/crystal/examples/strings/split_characters.cr @@ -2,5 +2,4 @@ text = "black cat" puts text.split("") puts text.split("").sort - puts text.chars