summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/foundations
diff options
context:
space:
mode:
authorAndrew Voynov <37143421+Andrew15-5@users.noreply.github.com>2025-06-10 18:34:57 +0300
committerGitHub <noreply@github.com>2025-06-10 15:34:57 +0000
commit5d34d54df4c529456e75f46a60c6d39e1b18ccdd (patch)
tree16a4729e1d7ab2e715dfc9d6911f52cd3135a15a /crates/typst-library/src/foundations
parent5d13b35458c9e39b43d9943aaa79210141df39b3 (diff)
Make a more descriptive definition of `module` (#6380)
Diffstat (limited to 'crates/typst-library/src/foundations')
-rw-r--r--crates/typst-library/src/foundations/module.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/typst-library/src/foundations/module.rs b/crates/typst-library/src/foundations/module.rs
index d6d5e831..55d8bab6 100644
--- a/crates/typst-library/src/foundations/module.rs
+++ b/crates/typst-library/src/foundations/module.rs
@@ -7,9 +7,10 @@ use typst_syntax::FileId;
use crate::diag::{bail, DeprecationSink, StrResult};
use crate::foundations::{repr, ty, Content, Scope, Value};
-/// A module of definitions.
+/// A collection of variables and functions that are commonly related to
+/// a single theme.
///
-/// A module
+/// A module can
/// - be built-in
/// - stem from a [file import]($scripting/#modules)
/// - stem from a [package import]($scripting/#packages) (and thus indirectly