Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(512)

Unified Diff: sdk/lib/core/int.dart

Issue 1211473002: Make int.gcd accept zero operands. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/core/int.dart
diff --git a/sdk/lib/core/int.dart b/sdk/lib/core/int.dart
index 4bac632032baa1fed7516cdd5511107f2c9e7202..c9759db5978e541166a45af05a972ec64db949de 100644
--- a/sdk/lib/core/int.dart
+++ b/sdk/lib/core/int.dart
@@ -124,7 +124,7 @@ abstract class int extends num {
* Returns the greatest common divisor of the absolute value of
* this integer and the absolute value of [other].
*
- * Both this and [other] must be non-zero.
+ * Either this or [other] must be non-zero.
*/
int gcd(int other);

Powered by Google App Engine
This is Rietveld 408576698