Skip to content

Commit 9268753

Browse files
albertms10Commit Queue
authored and
Commit Queue
committed
docs(point): fix typo in subtraction example
Closes #50409 GitOrigin-RevId: 31e506c Change-Id: Ie7fa546dc8db2a13ccca24e4eb7a5fbf452a024b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/268422 Commit-Queue: Slava Egorov <[email protected]> Reviewed-by: Slava Egorov <[email protected]>
1 parent eb19a96 commit 9268753

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/lib/math/point.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Point<T extends num> {
5858
/// Example:
5959
/// ```dart
6060
/// var point = const Point(10, 100) - const Point(10, 10); // Point(0, 90)
61-
/// point = const Point(-10, -20) - const Point(10, 100); // Point(-110, -120)
61+
/// point = const Point(-10, -20) - const Point(100, 100); // Point(-110, -120)
6262
/// ```
6363
Point<T> operator -(Point<T> other) {
6464
return Point<T>((x - other.x) as T, (y - other.y) as T);

0 commit comments

Comments
 (0)