diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-02-06 11:52:09 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-02-06 11:52:09 +0100 |
| commit | ea8edfa821f059921550c45d4f0267160b638a04 (patch) | |
| tree | 940c358e400e55bc1ba47faf7c1fa07611af5241 /library/src/layout/align.rs | |
| parent | 0bb0f1c98fc8eff5d7556bbe9d5801f02237a5c0 (diff) | |
Make Rust happier about the inline documentation
Diffstat (limited to 'library/src/layout/align.rs')
| -rw-r--r-- | library/src/layout/align.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/library/src/layout/align.rs b/library/src/layout/align.rs index 35b1026e..b84ccfdc 100644 --- a/library/src/layout/align.rs +++ b/library/src/layout/align.rs @@ -4,7 +4,7 @@ use crate::prelude::*; /// Align content horizontally and vertically. /// /// ## Example -/// ``` +/// ```example /// #set align(center) /// /// Centered text, a sight to see \ @@ -14,10 +14,10 @@ use crate::prelude::*; /// ``` /// /// ## Parameters -/// - body: Content (positional, required) +/// - body: `Content` (positional, required) /// The content to align. /// -/// - alignment: Axes<Option<GenAlign>> (positional, settable) +/// - alignment: `Axes<Option<GenAlign>>` (positional, settable) /// The alignment along both axes. /// /// Possible values for horizontal alignments are: @@ -28,7 +28,7 @@ use crate::prelude::*; /// - `right` /// /// The `start` and `end` alignments are relative to the current [text -/// direction](@text/dir). +/// direction]($func/text.dir). /// /// Possible values for vertical alignments are: /// - `top` @@ -39,8 +39,7 @@ use crate::prelude::*; /// the `+` operator to get a `2d alignment`. For example, `top + right` /// aligns the content to the top right corner. /// -/// ### Example -/// ``` +/// ```example /// #set page(height: 6cm) /// #set text(lang: "ar") /// |
