summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/typst/src/foundations/func.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/typst/src/foundations/func.rs b/crates/typst/src/foundations/func.rs
index dc5ea8df..4cc4a6ba 100644
--- a/crates/typst/src/foundations/func.rs
+++ b/crates/typst/src/foundations/func.rs
@@ -81,6 +81,10 @@ pub use typst_macros::func;
/// body evaluates to the result of joining all expressions preceding the
/// `return`.
///
+/// Functions that don't return any meaningful value return [`none`] instead.
+/// The return type of such functions is not explicitly specified in the
+/// documentation. (An example of this is [`array.push`]).
+///
/// ```example
/// #let alert(body, fill: red) = {
/// set text(white)