From a05a46fcc273ffffc4d9c6b64e7dbc9d5fa57b4f Mon Sep 17 00:00:00 2001 From: Ning Sun Date: Sun, 13 Mar 2022 20:34:44 +0800 Subject: [PATCH] doc: fix count in `TaskMonitor` docstring --- src/task.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/task.rs b/src/task.rs index e77515b..7606573 100644 --- a/src/task.rs +++ b/src/task.rs @@ -1600,7 +1600,7 @@ impl TaskMonitor { /// spin_for(slow) // slow poll 2 /// }).await; /// - /// // in the previous sampling interval, there were 3 slow polls + /// // in the previous sampling interval, there were 2 slow polls /// assert_eq!(next_interval().total_slow_poll_count, 2); /// /// // across all sampling interval, there were a total of 5 slow polls @@ -1660,7 +1660,7 @@ impl TaskMonitor { /// spin_for(slow) // slow poll 2 /// }).await; /// - /// // in the previous sampling interval, there were 3 slow polls + /// // in the previous sampling interval, there were 2 slow polls /// assert_eq!(next_interval().total_slow_poll_count, 2); /// /// // across all sampling intervals, there were a total of 5 slow polls