mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
Mention how to get the current compiler version in version documentation (#4170)
This commit is contained in:
parent
2308ca40f6
commit
daf3ccbe04
@ -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)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user