summaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorJeremie Knuesel <knuesel@gmail.com>2024-09-26 10:40:29 +0200
committerGitHub <noreply@github.com>2024-09-26 08:40:29 +0000
commit85b45435e08eaa85b0ac06d54c200bcaa6f0deef (patch)
treeb70b7315ae13d397d941ff1566660fe667a5d090 /crates
parent7d2142be0a3c499c489588cce8ecf3bfc98f4859 (diff)
Fix two doc typos (#5032)
Diffstat (limited to 'crates')
-rw-r--r--crates/typst/src/introspection/state.rs2
-rw-r--r--crates/typst/src/visualize/pattern.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/typst/src/introspection/state.rs b/crates/typst/src/introspection/state.rs
index a88ed526..6a3d68e2 100644
--- a/crates/typst/src/introspection/state.rs
+++ b/crates/typst/src/introspection/state.rs
@@ -71,7 +71,7 @@ use crate::World;
/// # Managing state in Typst { #state-in-typst }
/// 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
-/// 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`:
///
/// - The [`get`]($state.get) function retrieves the current value of the state.
diff --git a/crates/typst/src/visualize/pattern.rs b/crates/typst/src/visualize/pattern.rs
index daff5fa0..ca4bb46f 100644
--- a/crates/typst/src/visualize/pattern.rs
+++ b/crates/typst/src/visualize/pattern.rs
@@ -19,7 +19,7 @@ use crate::World;
/// 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
/// 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
///