From 5d34d54df4c529456e75f46a60c6d39e1b18ccdd Mon Sep 17 00:00:00 2001 From: Andrew Voynov <37143421+Andrew15-5@users.noreply.github.com> Date: Tue, 10 Jun 2025 18:34:57 +0300 Subject: [PATCH] Make a more descriptive definition of `module` (#6380) --- crates/typst-library/src/foundations/module.rs | 5 +++-- 1 file 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