mirror of
https://github.com/typst/typst
synced 2025-05-14 17:15:28 +08:00
Fix two doc typos (#5032)
This commit is contained in:
parent
7d2142be0a
commit
85b45435e0
@ -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.
|
||||||
|
@ -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
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user