Skip to content

Commit

Permalink
chore: change norun to no_run (#2518)
Browse files Browse the repository at this point in the history
I was building the docs and got the following documentation warning:

warning: unknown attribute `norun`. Did you mean `no_run`?
  --> tokio/src/time/throttle.rs:13:1
   |
13 | / /// Slows down a stream by enforcing a delay between items.
14 | | /// They will be produced not more often than the specified interval.
15 | | ///
16 | | /// # Example
...  |
31 | | /// # }
32 | | /// ```
   | |_______^
   |
   = help: the code block will either not be tested if not marked as a rust one or will be run (which you might not want)
  • Loading branch information
Darksonn authored May 12, 2020
1 parent 221f421 commit a32f918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokio/src/time/throttle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use pin_project_lite::pin_project;
/// # Example
///
/// Create a throttled stream.
/// ```rust,norun
/// ```rust,no_run
/// use std::time::Duration;
/// use tokio::stream::StreamExt;
/// use tokio::time::throttle;
Expand Down

0 comments on commit a32f918

Please sign in to comment.