You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2015/11/25 18:40:27 UTC
incubator-groovy git commit: Change modulo to remainder in operator
page (closes #195)
Repository: incubator-groovy
Updated Branches:
refs/heads/master 851fd58d7 -> de9970ff9
Change modulo to remainder in operator page (closes #195)
Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/de9970ff
Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/de9970ff
Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/de9970ff
Branch: refs/heads/master
Commit: de9970ff9278e0151471827653c6ef4edc8412b5
Parents: 851fd58
Author: Xavier DETANT <xa...@gmail.com>
Authored: Wed Nov 25 16:27:19 2015 +0100
Committer: pascalschumacher <pa...@gmx.net>
Committed: Wed Nov 25 18:39:48 2015 +0100
----------------------------------------------------------------------
src/spec/doc/core-operators.adoc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/de9970ff/src/spec/doc/core-operators.adoc
----------------------------------------------------------------------
diff --git a/src/spec/doc/core-operators.adoc b/src/spec/doc/core-operators.adoc
index d023122..7794454 100644
--- a/src/spec/doc/core-operators.adoc
+++ b/src/spec/doc/core-operators.adoc
@@ -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
|
| `**`
@@ -679,7 +679,7 @@ The table below lists all groovy operators in order of precedence.
| | `[]`   `++`   `--` | list/map/array index, post inc/decrement
| 2 | `**` | power
| 3 | `++`   `--`   `+`   `-` | pre inc/decrement, unary plus, unary minus
-| 4 | `*`   `/`   `%` | multiply, div, modulo
+| 4 | `*`   `/`   `%` | multiply, div, remainder
| 5 | `+`   `-` | addition, subtraction
| 6 | `<<`   `>>`   `>>>`   `..`   `..<` | left/right (unsigned) shift, inclusive/exclusive range
| 7 | `<`   `\<=`   `>`   `>=`   `in`   `instanceof`   `as` | less/greater than/or equal, in, instanceof, type coercion