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:
Albert Mañosa 2022-11-08 09:27:50 +00:00 committed by Commit Queue
parent eb19a96c98
commit 92687539de

View file

@ -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);