mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +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
|
/// special case, the empty version (that has no components at all) is the same
|
||||||
/// as `0`, `0.0`, `0.0.0`, and so on.
|
/// 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
|
/// You can convert a version to an array of explicitly given components using
|
||||||
/// the [`array`] constructor.
|
/// the [`array`] constructor.
|
||||||
#[ty(scope, cast)]
|
#[ty(scope, cast)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user