summaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorLeedehai <18319900+Leedehai@users.noreply.github.com>2024-02-05 04:42:47 -0500
committerGitHub <noreply@github.com>2024-02-05 09:42:47 +0000
commit6a9866dc80fefd5cd32e1432c4e95d3a834c3886 (patch)
tree773f2fcb36f010dac68f6120ee02fd42e333538b /crates
parent92aba81a91364eb49f3a613cd2db3b2163202434 (diff)
Update dictionary.insert() doc and tests (#3343)
Diffstat (limited to 'crates')
-rw-r--r--crates/typst/src/foundations/dict.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/typst/src/foundations/dict.rs b/crates/typst/src/foundations/dict.rs
index da82889d..341504cb 100644
--- a/crates/typst/src/foundations/dict.rs
+++ b/crates/typst/src/foundations/dict.rs
@@ -182,8 +182,8 @@ impl Dict {
.ok_or_else(|| missing_key_no_default(&key))
}
- /// Inserts a new pair into the dictionary and return the value. If the
- /// dictionary already contains this key, the value is updated.
+ /// Inserts a new pair into the dictionary. If the dictionary already
+ /// contains this key, the value is updated.
#[func]
pub fn insert(
&mut self,