From 77886bf6418271829729badec1d30efe3be9f738 Mon Sep 17 00:00:00 2001 From: "Sergey G. Grekhov" Date: Tue, 9 Jan 2024 09:10:44 +0000 Subject: [PATCH] [doc/async] Remove excessive statement from Timer.periodic() documentation Bug:#54423 Change-Id: I483d51861390cd4c5def02295a976db4363b84bb CoreLibraryReviewExempt: Documentation-only change Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/342762 Reviewed-by: Lasse Nielsen Reviewed-by: Alexander Thomas Commit-Queue: Alexander Thomas --- sdk/lib/async/timer.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/lib/async/timer.dart b/sdk/lib/async/timer.dart index 918d6f578c7..d8a0c8e504d 100644 --- a/sdk/lib/async/timer.dart +++ b/sdk/lib/async/timer.dart @@ -10,7 +10,7 @@ part of dart.async; /// When the timer reaches 0, the timer invokes the specified callback function. /// Use a periodic timer to repeatedly count down the same interval. /// -/// A negative duration is treated the same as a duration of 0. +/// A negative duration is treated the same as [Duration.zero]. /// If the duration is statically known to be 0, consider using [run]. /// /// ```dart @@ -64,7 +64,7 @@ abstract interface class Timer { /// when the previous callback started, or when the previous callback was /// scheduled for - even if the actual callback was delayed. /// - /// [duration] must a non-negative [Duration]. + /// A negative [duration] is treated the same as [Duration.zero]. /// /// Example: /// ```dart