summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalo <57839069+MDLC01@users.noreply.github.com>2025-04-10 11:27:42 +0200
committerGitHub <noreply@github.com>2025-04-10 09:27:42 +0000
commitc21c1c391b48f843c8671993a28eaf1fe0d40b89 (patch)
tree747e6f619e78009ac78ebe9ec2ddee0a2947e02d
parent94a497a01ffd60743b0a2ae67367be168bbde076 (diff)
Use `measure` `width` argument in `layout` doc (#6160)
-rw-r--r--crates/typst-library/src/layout/layout.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/typst-library/src/layout/layout.rs b/crates/typst-library/src/layout/layout.rs
index cde3187d..88252e5e 100644
--- a/crates/typst-library/src/layout/layout.rs
+++ b/crates/typst-library/src/layout/layout.rs
@@ -22,7 +22,8 @@ use crate::layout::{BlockElem, Size};
/// #let text = lorem(30)
/// #layout(size => [
/// #let (height,) = measure(
-/// block(width: size.width, text),
+/// width: size.width,
+/// text,
/// )
/// This text is #height high with
/// the current page width: \