summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGokul Soumya <gokulps15@gmail.com>2023-08-07 17:08:21 +0530
committerGitHub <noreply@github.com>2023-08-07 13:38:21 +0200
commit63935b9513718027b2af2619998a49a2234c57a5 (patch)
treeaf6c8951ba36e7ad5e71c6ffd5a281fb3f5165ff
parent357bce56f5ac701780e4fb967acce3f30ffcadf6 (diff)
Remove outdated docs about toml() not supporting datetimes (#1874)
-rw-r--r--crates/typst-library/src/compute/data.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/typst-library/src/compute/data.rs b/crates/typst-library/src/compute/data.rs
index 48e35846..ceeb48d1 100644
--- a/crates/typst-library/src/compute/data.rs
+++ b/crates/typst-library/src/compute/data.rs
@@ -266,10 +266,9 @@ fn format_json_error(error: serde_json::Error) -> EcoString {
///
/// The file must contain a valid TOML table. TOML tables will be
/// converted into Typst dictionaries, and TOML arrays will be converted into
-/// Typst arrays. Strings and booleans will be converted into the Typst
+/// Typst arrays. Strings, booleans and datetimes will be converted into the Typst
/// equivalents and numbers will be converted to floats or integers depending on
-/// whether they are whole numbers. For the time being, datetimes will be
-/// converted to strings as Typst does not have a built-in datetime yet.
+/// whether they are whole numbers.
///
/// The TOML file in the example consists of a table with the keys `title`,
/// `version`, and `authors`.