Skip to content

Commit

Permalink
Rollup merge of rust-lang#58565 - thomaseizinger:typo-future-docs, r=…
Browse files Browse the repository at this point in the history
…frewsxcv

Fix typo in std::future::Future docs

I am not quite sure if this is actually a typo but

1. to me the sentence doesn't make sense if it says "expect"
2. I hope that `Future`s are not really allowed to cause memory unsafety if they are polled after completion.
  • Loading branch information
kennytm committed Feb 20, 2019
2 parents 6e99101 + 75c541f commit 09c85a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/future/future.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pub trait Future {
///
/// Once a future has completed (returned `Ready` from `poll`),
/// then any future calls to `poll` may panic, block forever, or otherwise
/// cause any kind of bad behavior expect causing memory unsafety.
/// cause any kind of bad behavior except causing memory unsafety.
/// The `Future` trait itself provides no guarantees about the behavior
/// of `poll` after a future has completed.
///
Expand Down

0 comments on commit 09c85a1

Please sign in to comment.