summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalo <57839069+MDLC01@users.noreply.github.com>2024-05-18 10:42:31 +0200
committerGitHub <noreply@github.com>2024-05-18 08:42:31 +0000
commitdaf3ccbe04a02848d8c2b67f88f1086dd2751686 (patch)
tree32789cce5afa4655ee1cf00b645b66ef530e9d6e
parent2308ca40f6849d371b0610de6be61cbd6713088f (diff)
Mention how to get the current compiler version in version documentation (#4170)
-rw-r--r--crates/typst/src/foundations/version.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/typst/src/foundations/version.rs b/crates/typst/src/foundations/version.rs
index 9e2c61ba..62c02917 100644
--- a/crates/typst/src/foundations/version.rs
+++ b/crates/typst/src/foundations/version.rs
@@ -18,6 +18,8 @@ use crate::foundations::{cast, func, repr, scope, ty, Repr};
/// special case, the empty version (that has no components at all) is the same
/// as `0`, `0.0`, `0.0.0`, and so on.
///
+/// The current version of the Typst compiler is available as `sys.version`.
+///
/// You can convert a version to an array of explicitly given components using
/// the [`array`] constructor.
#[ty(scope, cast)]