about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-03-30 08:32:13 +0000
committerbors <bors@rust-lang.org>2019-03-30 08:32:13 +0000
commit6c49da45441d29aadd5935dabbaa8dc09ebad33a (patch)
treee3d8f54b557abdf322de702d4757293149e687c5 /src/libcore
parent709b72e7a73cbb798b728fd84c384bd0ad8ebf6c (diff)
parent62a78c4fcfca82cbdcdd13a5298885bd21e5d4d9 (diff)
downloadrust-6c49da45441d29aadd5935dabbaa8dc09ebad33a.tar.gz
rust-6c49da45441d29aadd5935dabbaa8dc09ebad33a.zip
Auto merge of #59550 - Centril:rollup, r=Centril
Rollup of 10 pull requests

Successful merges:

 - #59376 (RFC 2008: Enum Variants)
 - #59453 (Recover from parse error in tuple syntax)
 - #59455 (Account for short-hand field syntax when suggesting borrow)
 - #59499 (Fix broken download link in the armhf-gnu image)
 - #59512 (implement `AsRawFd` for stdio locks)
 - #59525 (Whitelist some rustc attrs)
 - #59528 (Improve the dbg! macro docs )
 - #59532 (In doc examples, don't ignore read/write results)
 - #59534 (rustdoc: collapse blanket impls in the same way as normal impls)
 - #59537 (Fix OnceWith docstring.)

Failed merges:

r? @ghost
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/iter/sources.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/iter/sources.rs b/src/libcore/iter/sources.rs
index ffc24df3ed4..7934e5880d7 100644
--- a/src/libcore/iter/sources.rs
+++ b/src/libcore/iter/sources.rs
@@ -375,8 +375,8 @@ pub fn once<T>(value: T) -> Once<T> {
     Once { inner: Some(value).into_iter() }
 }
 
-/// An iterator that repeats elements of type `A` endlessly by
-/// applying the provided closure `F: FnMut() -> A`.
+/// An iterator that yields a single element of type `A` by
+/// applying the provided closure `F: FnOnce() -> A`.
 ///
 /// This `struct` is created by the [`once_with`] function.
 /// See its documentation for more.