# HG changeset patch
# User igerasim
# Date 1573014441 28800
# Node ID e940d13a2ed3dd69c128d0776152cb0e64a07993
# Parent 5db99b3d6023059255823d2ee5027cd8e0e587fa
8233650: Javadoc for Math.floorMod(int, int) gives wrong example
Reviewed-by: bpb
diff -r 5db99b3d6023 -r e940d13a2ed3 src/java.base/share/classes/java/lang/Math.java
--- a/src/java.base/share/classes/java/lang/Math.java Tue Nov 05 18:42:10 2019 -0500
+++ b/src/java.base/share/classes/java/lang/Math.java Tue Nov 05 20:27:21 2019 -0800
@@ -1259,16 +1259,17 @@
* Examples:
*
* - If the signs of the arguments are the same, the results
- * of {@code floorMod} and the {@code %} operator are the same.
+ * of {@code floorMod} and the {@code %} operator are the same.
*
- * - {@code floorMod(4, 3) == 1}; and {@code (4 % 3) == 1}
+ * - {@code floorMod(+4, +3) == +1}; and {@code (+4 % +3) == +1}
+ * - {@code floorMod(-4, -3) == -1}; and {@code (-4 % -3) == -1}
*
- * - If the signs of the arguments are different, the results differ from the {@code %} operator.
- *
- * - {@code floorMod(+4, -3) == -2}; and {@code (+4 % -3) == +1}
- * - {@code floorMod(-4, +3) == +2}; and {@code (-4 % +3) == -1}
- * - {@code floorMod(-4, -3) == -1}; and {@code (-4 % -3) == -1 }
- *
+ * - If the signs of the arguments are different, the results
+ * differ from the {@code %} operator.
+ *
+ * - {@code floorMod(+4, -3) == -2}; and {@code (+4 % -3) == +1}
+ * - {@code floorMod(-4, +3) == +2}; and {@code (-4 % +3) == -1}
+ *
*
*
*