Skip to content

Commit 09c85a1

Browse files
committedFeb 20, 2019
Rollup merge of rust-lang#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.

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/libcore/future/future.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub trait Future {
8181
///
8282
/// Once a future has completed (returned `Ready` from `poll`),
8383
/// then any future calls to `poll` may panic, block forever, or otherwise
84-
/// cause any kind of bad behavior expect causing memory unsafety.
84+
/// cause any kind of bad behavior except causing memory unsafety.
8585
/// The `Future` trait itself provides no guarantees about the behavior
8686
/// of `poll` after a future has completed.
8787
///

0 commit comments

Comments
 (0)
Please sign in to comment.