Compare commits

...

4 Commits

Author SHA1 Message Date
Robin
a1ab080d11
Merge c86f9b3a2dec37c6e9984f81d4630bad343ee452 into 36ecbb2c8dccc1a31c43fee1466f1425844d8607 2025-07-07 16:29:40 +02:00
Robin
36ecbb2c8d
Refer to json function instead of deprecated json.decode in groups docs (#6552) 2025-07-07 14:15:32 +00:00
Robin
51ab5b815c
Fix minor typo in function docs (#6542) 2025-07-07 14:15:10 +00:00
mewmew
c86f9b3a2d Rephrase docs for truncation of float/decimal to integer
Use "corresponding integer" instead of "next integer", to avoid confusion
that 2.7 may be rounded to 3.
2025-07-02 13:27:42 +02:00
3 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ use crate::foundations::{
///
/// You can call a function by writing a comma-separated list of function
/// _arguments_ enclosed in parentheses directly after the function name.
/// Additionally, you can pass any number of trailing content blocks arguments
/// Additionally, you can pass any number of trailing content block arguments
/// to a function _after_ the normal argument list. If the normal argument list
/// would become empty, it can be omitted. Typst supports positional and named
/// arguments. The former are identified by position and type, while the latter

View File

@ -46,7 +46,7 @@ impl i64 {
/// or smaller than the minimum 64-bit signed integer.
///
/// - Booleans are converted to `0` or `1`.
/// - Floats and decimals are truncated to the next 64-bit integer.
/// - Floats and decimals are truncated to the corresponding 64-bit integer.
/// - Strings are parsed in base 10.
///
/// ```example

View File

@ -205,7 +205,7 @@
single or double quotes.
The value is always of type [string]($str). More complex data
may be parsed manually using functions like [`json.decode`]($json.decode).
may be parsed manually using functions like [`json`]($json).
- name: sym
title: General