Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change modulo to remainder in operator page #195

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/spec/doc/core-operators.adoc
Expand Up @@ -56,7 +56,7 @@ The following binary arithmetic operators are available in Groovy:
| Use `intdiv()` for integer division, and see the section about <<core-syntax.adoc#integer_division,integer division>> for more information on the return type of the division.

| `%`
| modulo
| remainder
|

| `**`
Expand Down Expand Up @@ -679,7 +679,7 @@ The table below lists all groovy operators in order of precedence.
| | `[]` &#160; `++` &#160; `--` | list/map/array index, post inc/decrement
| 2 | `**` | power
| 3 | `++` &#160; `--` &#160; `+` &#160; `-` | pre inc/decrement, unary plus, unary minus
| 4 | `*` &#160; `/` &#160; `%` | multiply, div, modulo
| 4 | `*` &#160; `/` &#160; `%` | multiply, div, remainder
| 5 | `+` &#160; `-` | addition, subtraction
| 6 | `<<` &#160; `>>` &#160; `>>>` &#160; `..` &#160; `..<` | left/right (unsigned) shift, inclusive/exclusive range
| 7 | `<` &#160; `\<=` &#160; `>` &#160; `>=` &#160; `in` &#160; `instanceof` &#160; `as` | less/greater than/or equal, in, instanceof, type coercion
Expand Down