2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-05-23 15:31:29 +00:00

Merge pull request #1082 from jayvdb/typos

Fix typos
This commit is contained in:
Marc-Antoine Perennou 2024-08-20 22:08:02 +02:00 committed by GitHub
commit 74dbd3a829
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -686,9 +686,9 @@ use async_std::prelude::*;
use async_std::task; use async_std::task;
task::spawn(async { task::spawn(async {
let x = fibonnacci(1000); // Do expensive work let x = fibonacci(1000); // Do expensive work
task::yield_now().await; // Allow other tasks to run task::yield_now().await; // Allow other tasks to run
x + fibonnacci(100) // Do more work x + fibonacci(100) // Do more work
}) })
``` ```

View file

@ -42,7 +42,7 @@ pin_project! {
/// ///
/// This stream is constructed by [`successors`] function /// This stream is constructed by [`successors`] function
/// ///
/// [`successors`]: fn.succssors.html /// [`successors`]: fn.successors.html
#[cfg(feature = "unstable")] #[cfg(feature = "unstable")]
#[cfg_attr(feature = "docs", doc(cfg(unstable)))] #[cfg_attr(feature = "docs", doc(cfg(unstable)))]
#[derive(Debug)] #[derive(Debug)]