Use measure width argument in layout doc (#6160)

This commit is contained in:
Malo 2025-04-10 11:27:42 +02:00 committed by GitHub
parent 94a497a01f
commit c21c1c391b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: \