diff options
| author | kennytm <kennytm@gmail.com> | 2018-05-26 19:32:30 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-26 19:32:30 +0800 |
| commit | 239e3d2dd7e2b8a8d46eedff73018c5e17a4f051 (patch) | |
| tree | 16cd5c71d06c3572d62b5ad914de663cdcb2f3ab /src/liballoc | |
| parent | 18028eb217a19fbff24776e8f4e84899affa4eeb (diff) | |
| parent | 91f7ae26b0b288f7c36fb52efa16e28d5b0c9d5f (diff) | |
| download | rust-239e3d2dd7e2b8a8d46eedff73018c5e17a4f051.tar.gz rust-239e3d2dd7e2b8a8d46eedff73018c5e17a4f051.zip | |
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.
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/fmt.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/liballoc/fmt.rs b/src/liballoc/fmt.rs index b2c4582e840..a4e5373d907 100644 --- a/src/liballoc/fmt.rs +++ b/src/liballoc/fmt.rs @@ -340,7 +340,8 @@ //! //! ## Fill/Alignment //! -//! The fill character is provided normally in conjunction with the `width` +//! The fill character is provided normally in conjunction with the +//! [`width`](#width) //! parameter. This indicates that if the value being formatted is smaller than //! `width` some extra characters will be printed around it. The extra //! characters are specified by `fill`, and the alignment can be one of the @@ -388,7 +389,8 @@ //! padding specified by fill/alignment will be used to take up the required //! space. //! -//! The default fill/alignment for non-numerics is a space and left-aligned. The +//! The default [fill/alignment](#fillalignment) for non-numerics is a space and +//! left-aligned. The //! defaults for numeric formatters is also a space but with right-alignment. If //! the `0` flag is specified for numerics, then the implicit fill character is //! `0`. |
