Fix two doc typos (#5032)

This commit is contained in:
Jeremie Knuesel 2024-09-26 10:40:29 +02:00 committed by GitHub
parent 7d2142be0a
commit 85b45435e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ use crate::World;
/// # Managing state in Typst { #state-in-typst } /// # Managing state in Typst { #state-in-typst }
/// So what do we do instead? We use Typst's state management system. Calling /// So what do we do instead? We use Typst's state management system. Calling
/// the `state` function with an identifying string key and an optional initial /// the `state` function with an identifying string key and an optional initial
/// value gives you a state value which exposes a few function. The two most /// value gives you a state value which exposes a few functions. The two most
/// important ones are `get` and `update`: /// important ones are `get` and `update`:
/// ///
/// - The [`get`]($state.get) function retrieves the current value of the state. /// - The [`get`]($state.get) function retrieves the current value of the state.

View File

@ -19,7 +19,7 @@ use crate::World;
/// pattern is repeated in a grid-like fashion, covering the entire area of an /// pattern is repeated in a grid-like fashion, covering the entire area of an
/// element that is filled or stroked. The pattern is defined by a tile size and /// element that is filled or stroked. The pattern is defined by a tile size and
/// a body defining the content of each cell. You can also add horizontal or /// a body defining the content of each cell. You can also add horizontal or
/// vertical spacing between the cells of the patterng. /// vertical spacing between the cells of the pattern.
/// ///
/// # Examples /// # Examples
/// ///