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.