Skip to content

Commit

Permalink
Mention how to get the current compiler version in version documentat…
Browse files Browse the repository at this point in the history
…ion (#4170)
  • Loading branch information
MDLC01 committed May 18, 2024
1 parent 2308ca4 commit daf3ccb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/typst/src/foundations/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit daf3ccb

Please sign in to comment.