Use `measure` `width` argument in `layout` doc (#6160)
This commit is contained in:
parent
94a497a01f
commit
c21c1c391b
|
|
@ -22,7 +22,8 @@ use crate::layout::{BlockElem, Size};
|
||||||
/// #let text = lorem(30)
|
/// #let text = lorem(30)
|
||||||
/// #layout(size => [
|
/// #layout(size => [
|
||||||
/// #let (height,) = measure(
|
/// #let (height,) = measure(
|
||||||
/// block(width: size.width, text),
|
/// width: size.width,
|
||||||
|
/// text,
|
||||||
/// )
|
/// )
|
||||||
/// This text is #height high with
|
/// This text is #height high with
|
||||||
/// the current page width: \
|
/// the current page width: \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue