Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
szabgab committed Jun 30, 2021
1 parent 0874135 commit 7750653
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions crystal/examples/regexes/gsub.cr
Original file line number Diff line number Diff line change
@@ -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 }
1 change: 0 additions & 1 deletion crystal/examples/strings/split_characters.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ text = "black cat"
puts text.split("")
puts text.split("").sort


puts text.chars

0 comments on commit 7750653

Please sign in to comment.