about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-07-27 11:07:32 +0000
committerbors <bors@rust-lang.org>2020-07-27 11:07:32 +0000
commit52d2c7ac948d6abdc18eb9e05a53d03ddcaffd98 (patch)
treea30872c445cc554a5bff48f20e7afb134540c103 /src/libcore
parent9af6b3d4e74cf31c21821430de755219bf239d96 (diff)
parent7df242dd0900c9ac9bf79c184c72b0978ef9fa9e (diff)
downloadrust-52d2c7ac948d6abdc18eb9e05a53d03ddcaffd98.tar.gz
rust-52d2c7ac948d6abdc18eb9e05a53d03ddcaffd98.zip
Auto merge of #74817 - JohnTitor:rollup-0fchdye, r=JohnTitor
Rollup of 6 pull requests

Successful merges:

 - #74088 (Avoid writes without any data in `Write::write_all_vectored`)
 - #74598 (Fix sync_once_cell_does_not_leak_partially_constructed_boxes)
 - #74750 (Clean up some uses of logging in ui tests)
 - #74783 (python codes cleanup)
 - #74790 (Don't italicize comments in ayu theme)
 - #74799 (Fixed typo in `closure`)

Failed merges:

r? @ghost
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/ops/function.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/ops/function.rs b/src/libcore/ops/function.rs
index 4f08aa45187..3e5cad2b185 100644
--- a/src/libcore/ops/function.rs
+++ b/src/libcore/ops/function.rs
@@ -160,7 +160,7 @@ pub trait FnMut<Args>: FnOnce<Args> {
 /// times. Because of this, if the only thing known about a type is that it
 /// implements `FnOnce`, it can only be called once.
 ///
-/// `FnOnce` is implemented automatically by closure that might consume captured
+/// `FnOnce` is implemented automatically by closures that might consume captured
 /// variables, as well as all types that implement [`FnMut`], e.g., (safe)
 /// [function pointers] (since `FnOnce` is a supertrait of [`FnMut`]).
 ///