Skip to content

Commit 005e496

Browse files
nikucommit-bot@chromium.org
authored andcommitted
Fix isAfter method code example on DateTime class
The code example looks similar as [isBefore method](https://github.com/dart-lang/sdk/blob/b8d040e5239e02b945b529347d0b980fc8a26db2/sdk/lib/core/date_time.dart#L405-L417) except in this change. Closes #46847 #46847 GitOrigin-RevId: 4087032 Change-Id: I0b01d82ce4fad9ae076c4a1d46ee03cbc3b08d25 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/209460 Reviewed-by: Lasse R.H. Nielsen <[email protected]> Commit-Queue: Lasse R.H. Nielsen <[email protected]>
1 parent 766113b commit 005e496

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/lib/core/date_time.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,8 +432,8 @@ class DateTime implements Comparable<DateTime> {
432432
/// assert(later.isAfter(now.toUtc()));
433433
/// assert(later.toUtc().isAfter(now));
434434
///
435-
/// assert(!now.toUtc().isBefore(now));
436-
/// assert(!now.isBefore(now.toUtc()));
435+
/// assert(!now.toUtc().isAfter(now));
436+
/// assert(!now.isAfter(now.toUtc()));
437437
/// ```
438438
external bool isAfter(DateTime other);
439439

0 commit comments

Comments
 (0)