Skip to content

Commit

Permalink
[java/need-for-speed] Update analyzer comment (#2360)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kahgoh authored Oct 8, 2024
1 parent 49b9ac2 commit b899040
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions analyzer-comments/java/need-for-speed/avoid_loops.md
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit b899040

Please sign in to comment.