Skip to content

Commit 239e3d2

Browse files
authored
Rollup merge of #51067 - mcarton:patch-1, r=steveklabnik
Add inner links in documentation From [this SO question](https://stackoverflow.com/q/50518757/2733851) it looks like this page isn't really clear. I personally do think this page is quite clear, the only think I could think of was adding some references.
2 parents 18028eb + 91f7ae2 commit 239e3d2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/liballoc/fmt.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,8 @@
340340
//!
341341
//! ## Fill/Alignment
342342
//!
343-
//! The fill character is provided normally in conjunction with the `width`
343+
//! The fill character is provided normally in conjunction with the
344+
//! [`width`](#width)
344345
//! parameter. This indicates that if the value being formatted is smaller than
345346
//! `width` some extra characters will be printed around it. The extra
346347
//! characters are specified by `fill`, and the alignment can be one of the
@@ -388,7 +389,8 @@
388389
//! padding specified by fill/alignment will be used to take up the required
389390
//! space.
390391
//!
391-
//! The default fill/alignment for non-numerics is a space and left-aligned. The
392+
//! The default [fill/alignment](#fillalignment) for non-numerics is a space and
393+
//! left-aligned. The
392394
//! defaults for numeric formatters is also a space but with right-alignment. If
393395
//! the `0` flag is specified for numerics, then the implicit fill character is
394396
//! `0`.

0 commit comments

Comments
 (0)