diff options
| author | Tobias Bucher <tobiasbucher5991@gmail.com> | 2023-06-23 14:38:30 +0200 |
|---|---|---|
| committer | Tobias Bucher <tobiasbucher5991@gmail.com> | 2023-06-27 17:22:26 +0200 |
| commit | 659c17a6760ca03d3d69e2f44cef8fb3932cec95 (patch) | |
| tree | fbb1b3d3bb9d831ec6bb75ca6d57056eea224e1f | |
| parent | fe37f37e4b764bb82fc0eb8c727842746de7c93f (diff) | |
| download | rust-659c17a6760ca03d3d69e2f44cef8fb3932cec95.tar.gz rust-659c17a6760ca03d3d69e2f44cef8fb3932cec95.zip | |
Change the wording in `std::fmt::Write::write_str`
Refer to the error instead of expanding its name.
| -rw-r--r-- | library/core/src/fmt/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/fmt/mod.rs b/library/core/src/fmt/mod.rs index 1786b309c5b..5c6359a9025 100644 --- a/library/core/src/fmt/mod.rs +++ b/library/core/src/fmt/mod.rs @@ -112,9 +112,9 @@ pub trait Write { /// /// # Errors /// - /// This function will return an instance of [`Error`] on error. + /// This function will return an instance of [`std::fmt::Error`] on error. /// - /// The purpose of std::fmt::Error is to abort the formatting operation when the underlying + /// The purpose of that error is to abort the formatting operation when the underlying /// destination encounters some error preventing it from accepting more text; it should /// generally be propagated rather than handled, at least when implementing formatting traits. /// |
