From daf3ccbe04a02848d8c2b67f88f1086dd2751686 Mon Sep 17 00:00:00 2001 From: Malo <57839069+MDLC01@users.noreply.github.com> Date: Sat, 18 May 2024 10:42:31 +0200 Subject: [PATCH] Mention how to get the current compiler version in version documentation (#4170) --- crates/typst/src/foundations/version.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/typst/src/foundations/version.rs b/crates/typst/src/foundations/version.rs index 9e2c61ba6..62c029179 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)]