Skip to content

Commit b263675

Browse files
authored
time: clean up stale Err(Invalid) doc and typo (#8590)
In `tokio::runtime::time::Wheel::insert`, `InsertError::Invalid` no longer exists, so remove the stale doc comment. In `tokio_util::time::Wheel::insert`, fix typo `as been supplied` to `has been supplied`.
1 parent 5d5cd8b commit b263675

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

  • tokio-util/src/time/wheel
  • tokio/src/runtime/time/wheel

‎tokio-util/src/time/wheel/mod.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ where
9090
/// already passed. In this case, the caller should fire the timeout
9191
/// immediately.
9292
///
93-
/// `Err(Invalid)` indicates an invalid `when` argument as been supplied.
93+
/// `Err(Invalid)` indicates an invalid `when` argument has been supplied.
9494
pub(crate) fn insert(
9595
&mut self,
9696
when: u64,

‎tokio/src/runtime/time/wheel/mod.rs‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ impl Wheel {
8080
/// already passed. In this case, the caller should fire the timeout
8181
/// immediately.
8282
///
83-
/// `Err(Invalid)` indicates an invalid `when` argument as been supplied.
84-
///
8583
/// # Safety
8684
///
8785
/// This function registers item into an intrusive linked list. The caller

0 commit comments

Comments
 (0)