Update documentation of dart:math.

Change-Id: Ice4a00c0dee37e88e4ee52ce76d7e7955e75cdb1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/178820
Reviewed-by: Nate Bosch <nbosch@google.com>
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>
This commit is contained in:
Lasse Reichstein Holst Nielsen 2021-01-14 11:24:06 +00:00 committed by commit-bot@chromium.org
parent 1ebeb87a82
commit 434a97a3c1
2 changed files with 4 additions and 3 deletions

View file

@ -5,9 +5,9 @@
/// Mathematical constants and functions, plus a random number generator.
///
/// To use this library in your code:
///
/// import 'dart:math';
///
/// ```dart
/// import 'dart:math';
/// ```
/// {@category Core}
library dart.math;

View file

@ -9,6 +9,7 @@ class Point<T extends num> {
final T x;
final T y;
/// Creates a point with the provided [x] and [y] coordinates.
const Point(T x, T y)
: this.x = x,
this.y = y;