From f40ec8746a3332b72808d1d491d175120a1296e9 Mon Sep 17 00:00:00 2001 From: Kah Goh Date: Mon, 23 Sep 2024 07:09:25 +0800 Subject: [PATCH] [java/need-for-speed] Update analyzer comment This updates the comment to reflect that there are other comparison operators (other than `<=`) that could be used and to hint more methods could be added as needed. This is for exercism/java-analyzer#216 --- analyzer-comments/java/need-for-speed/avoid_loops.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/analyzer-comments/java/need-for-speed/avoid_loops.md b/analyzer-comments/java/need-for-speed/avoid_loops.md index ebc9fa6d0..571cc1a96 100644 --- a/analyzer-comments/java/need-for-speed/avoid_loops.md +++ b/analyzer-comments/java/need-for-speed/avoid_loops.md @@ -1,4 +1,4 @@ # avoid loops -Instead of using a loop, consider returning a single expression using the `<=` operator. -You can re-use the other methods already implemented in the class. +Instead of using a loop, consider using a single expression based on one of the comparison operators (i.e. `<=`, `>=`, `<`, `>`, etc.). +You can re-use the other methods already implemented in the class or add new ones as needed.