Skip to content

Commit f8d7b41

Browse files
committed
Reword docs slightly
1 parent 8537abb commit f8d7b41

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/core/src/fmt/builders.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,8 +1210,8 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
12101210
}
12111211
}
12121212

1213-
/// Creates a type whose [`fmt::Debug`] and [`fmt::Display`] impls are provided with the function
1214-
/// `f`.
1213+
/// Creates a type whose [`fmt::Debug`] and [`fmt::Display`] impls are
1214+
/// forwarded to the provided closure.
12151215
///
12161216
/// # Examples
12171217
///
@@ -1232,7 +1232,7 @@ pub fn from_fn<F: Fn(&mut fmt::Formatter<'_>) -> fmt::Result>(f: F) -> FromFn<F>
12321232
FromFn(f)
12331233
}
12341234

1235-
/// Implements [`fmt::Debug`] and [`fmt::Display`] using a function.
1235+
/// Implements [`fmt::Debug`] and [`fmt::Display`] via the provided closure.
12361236
///
12371237
/// Created with [`from_fn`].
12381238
#[stable(feature = "fmt_from_fn", since = "CURRENT_RUSTC_VERSION")]

0 commit comments

Comments
 (0)