From bcff15e9ff6499039443a177c6d4ce8316b57add Mon Sep 17 00:00:00 2001 From: Jaron Truman <13025887+jtruman88@users.noreply.github.com> Date: Wed, 28 Feb 2024 15:49:38 -0700 Subject: [PATCH] Fix Typo in Target Practice I think this should say "even" numbers, since we don't want to `reject!` all numbers to be left with only odd numbers. --- src/04-target-practice.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/04-target-practice.md b/src/04-target-practice.md index 76c443b..554647f 100644 --- a/src/04-target-practice.md +++ b/src/04-target-practice.md @@ -89,7 +89,7 @@ We'll go about this in the following way: - If a target should be removed, then we'll mark it as `dead` - After we've checked all of our targets, we'll `reject!` the dead ones from `args.state.targets` -Ruby makes that pretty easy. All you do is call the `#reject!` method on an array and pass in the logic for when an item should be removed. If you have an array of numbers and call reject on all of the numbers, only the odd ones will remain in the array: +Ruby makes that pretty easy. All you do is call the `#reject!` method on an array and pass in the logic for when an item should be removed. If you have an array of numbers and call reject on all of the even numbers, only the odd ones will remain in the array: ``` ruby nums = [3, 4, 5]