From d9fa5d7880c987243ba3bdce6fd8e48e5a553682 Mon Sep 17 00:00:00 2001 From: meatball <69751659+meatball133@users.noreply.github.com> Date: Sat, 14 Oct 2023 23:29:08 +0200 Subject: [PATCH] Simplify example (#525) --- exercises/practice/proverb/.meta/src/example.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/practice/proverb/.meta/src/example.cr b/exercises/practice/proverb/.meta/src/example.cr index 7ef71b64..81f20fdb 100644 --- a/exercises/practice/proverb/.meta/src/example.cr +++ b/exercises/practice/proverb/.meta/src/example.cr @@ -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