From 1084bce4e8107f8371f2dde013986674659de8a6 Mon Sep 17 00:00:00 2001 From: Andrew Voynov <37143421+Andrew15-5@users.noreply.github.com> Date: Fri, 15 Mar 2024 16:58:31 +0300 Subject: [PATCH] Small improvements to heading parameter docs (#3660) Co-authored-by: Laurenz --- crates/typst/src/model/heading.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/typst/src/model/heading.rs b/crates/typst/src/model/heading.rs index 0aae9f27e..314f54826 100644 --- a/crates/typst/src/model/heading.rs +++ b/crates/typst/src/model/heading.rs @@ -69,14 +69,14 @@ pub struct HeadingElem { /// combined with `{offset}` to compute the actual `{level}`. /// /// This is set by the heading syntax, such that `[== Heading]` creates a - /// heading with logical depth 2, but actual level `{offset + 2}`. If you + /// heading with logical depth of 2, but actual level `{offset + 2}`. If you /// construct a heading manually, you should typically prefer this over - /// setting the absolute `level`. + /// setting the absolute level. #[default(NonZeroUsize::ONE)] pub depth: NonZeroUsize, - /// The starting offset of each heading's level, used to turn its relative - /// `{depth}` into its absolute `{level}`. + /// The starting offset of each heading's `{level}`, used to turn its + /// relative `{depth}` into its absolute `{level}`. /// /// ```example /// = Level 1 @@ -126,7 +126,7 @@ pub struct HeadingElem { /// /// Note that this property, if set to `{true}`, ensures the heading is also /// shown as a bookmark in the exported PDF's outline (when exporting to - /// PDF). To change that behaviour, use the `bookmarked` property. + /// PDF). To change that behavior, use the `bookmarked` property. /// /// ```example /// #outline() @@ -148,7 +148,7 @@ pub struct HeadingElem { /// appear in the exported PDF's outline if its `outlined` property is set /// to `{true}`, that is, if it would also be listed in Typst's [outline]. /// Setting this property to either `{true}` (bookmark) or `{false}` (don't - /// bookmark) bypasses that behaviour. + /// bookmark) bypasses that behavior. /// /// ```example /// #heading[Normal heading]