From 8f9d43f07c1cb1c2656d7a9ad5969d1f194c2788 Mon Sep 17 00:00:00 2001 From: Joshua Coales <joshua@coales.co.uk> Date: Wed, 17 Apr 2019 21:08:23 +0100 Subject: [PATCH] "Because 5 is between 11 and 20" fix --- source/14-conditionals.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/14-conditionals.md b/source/14-conditionals.md index d05ef3c..d9f2fbc 100644 --- a/source/14-conditionals.md +++ b/source/14-conditionals.md @@ -38,7 +38,7 @@ Let's walk through it one by one: case Ruby will, again, first check the first condition `number.between?(1, 10)`, but this time this method call returns `false`. Therefore, Ruby will ignore the `if` branch, and check the next condition on the `elsif` line: - `number.between?(11, 20)`. Now, this method call returns true, because `5` is + `number.between?(11, 20)`. Now, this method call returns true, because `15` is between `11` and `20`. Ruby will therefore execute the `elsif` branch, and print out this message. Again, once it is done executing the `elsif` branch Ruby will ignore the rest of the statement.