Skip to content

Commit b8d040e

Browse files
authored
Fix isAfter method code example on DateTime class
1 parent 3bec5e5 commit b8d040e

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)