Skip to content

Commit c70f3ab

Browse files
committed
std::fmt: Removed reference to Formatter::buf and other private fields
Formatter::buf is not a public field and therefore isn't very helpful in user- facing documentation. Also, the other public fields of Formatter were made private during stabilization of std::fmt (4af3494) and can now only be read via accessor methods.
1 parent 79d9afd commit c70f3ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/alloc/src/fmt.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,9 @@
369369
//! ```
370370
//!
371371
//! Your type will be passed as `self` by-reference, and then the function
372-
//! should emit output into the `f.buf` stream. It is up to each format trait
373-
//! implementation to correctly adhere to the requested formatting parameters.
374-
//! The values of these parameters will be listed in the fields of the
372+
//! should emit output into the Formatter `f` which implements `fmt::Write`. It is up to each
373+
//! format trait implementation to correctly adhere to the requested formatting parameters.
374+
//! The values of these parameters can be accessed with methods of the
375375
//! [`Formatter`] struct. In order to help with this, the [`Formatter`] struct also
376376
//! provides some helper methods.
377377
//!

0 commit comments

Comments
 (0)