Skip to content

Commit

Permalink
Simplify example (#525)
Browse files Browse the repository at this point in the history
  • Loading branch information
meatball133 authored Oct 14, 2023
1 parent 0daff64 commit d9fa5d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/practice/proverb/.meta/src/example.cr
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module Proverb

def recite(strings : Array(String)) : Array(String)
proverb = [] of String
if strings.size > 0
unless strings.empty?
strings.each_cons(2) do |h|
proverb << "For want of a #{h[0]} the #{h[1]} was lost."
end
Expand Down

0 comments on commit d9fa5d7

Please sign in to comment.