1
Fork 0

Rollup merge of #58565 - thomaseizinger:typo-future-docs, r=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.
This commit is contained in:
kennytm 2019-02-20 01:13:44 +08:00
commit 09c85a1d22
No known key found for this signature in database
GPG key ID: FEF6C8051D0E013C

View file

@ -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.
///