mirror of
https://github.com/typst/typst
synced 2025-06-08 05:06:24 +08:00
Fix typo in layout docs, change "size" to "height" (#6344)
This commit is contained in:
parent
4329a15a1c
commit
fd08c4bb3f
@ -41,7 +41,7 @@ use crate::layout::{BlockElem, Size};
|
|||||||
/// receives the page's dimensions minus its margins. This is mostly useful in
|
/// receives the page's dimensions minus its margins. This is mostly useful in
|
||||||
/// combination with [measurement]($measure).
|
/// combination with [measurement]($measure).
|
||||||
///
|
///
|
||||||
/// To retrieve the _remaining_ size of the page rather than its full size, you
|
/// To retrieve the _remaining_ height of the page rather than its full size,
|
||||||
/// you can wrap your `layout` call in a `{block(height: 1fr)}`. This works
|
/// you can wrap your `layout` call in a `{block(height: 1fr)}`. This works
|
||||||
/// because the block automatically grows to fill the remaining space (see the
|
/// because the block automatically grows to fill the remaining space (see the
|
||||||
/// [fraction] documentation for more details).
|
/// [fraction] documentation for more details).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user