Mention how to get the current compiler version in version documentation (#4170)

This commit is contained in:
Malo 2024-05-18 10:42:31 +02:00 committed by GitHub
parent 2308ca40f6
commit daf3ccbe04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)]