mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 03:17:55 +00:00
docs(point): fix typo in subtraction example
Closes https://github.com/dart-lang/sdk/pull/50409 GitOrigin-RevId: 31e506c0287d57588399f54a447980f176159c9e Change-Id: Ie7fa546dc8db2a13ccca24e4eb7a5fbf452a024b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/268422 Commit-Queue: Slava Egorov <vegorov@google.com> Reviewed-by: Slava Egorov <vegorov@google.com>
This commit is contained in:
parent
eb19a96c98
commit
92687539de
|
@ -58,7 +58,7 @@ class Point<T extends num> {
|
|||
/// Example:
|
||||
/// ```dart
|
||||
/// var point = const Point(10, 100) - const Point(10, 10); // Point(0, 90)
|
||||
/// point = const Point(-10, -20) - const Point(10, 100); // Point(-110, -120)
|
||||
/// point = const Point(-10, -20) - const Point(100, 100); // Point(-110, -120)
|
||||
/// ```
|
||||
Point<T> operator -(Point<T> other) {
|
||||
return Point<T>((x - other.x) as T, (y - other.y) as T);
|
||||
|
|
Loading…
Reference in a new issue