summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-07-11 11:30:06 +0200
committerGitHub <noreply@github.com>2024-07-11 09:30:06 +0000
commit36042ff222d70349f4c459384790ec40e1103bf9 (patch)
treece13f342f3856828039b65cfc026ba3903b3b7a6
parent3c22902d6cd99de6717fd2dad0a1fcca48039225 (diff)
Remove `place.flush` from global scope (#4537)
-rw-r--r--crates/typst/src/layout/mod.rs1
-rw-r--r--crates/typst/src/layout/place.rs2
2 files changed, 1 insertions, 2 deletions
diff --git a/crates/typst/src/layout/mod.rs b/crates/typst/src/layout/mod.rs
index 85cdbae7..739d0922 100644
--- a/crates/typst/src/layout/mod.rs
+++ b/crates/typst/src/layout/mod.rs
@@ -106,7 +106,6 @@ pub fn define(global: &mut Scope) {
global.define_elem::<ColumnsElem>();
global.define_elem::<ColbreakElem>();
global.define_elem::<PlaceElem>();
- global.define_elem::<FlushElem>();
global.define_elem::<AlignElem>();
global.define_elem::<PadElem>();
global.define_elem::<RepeatElem>();
diff --git a/crates/typst/src/layout/place.rs b/crates/typst/src/layout/place.rs
index 78922c1b..be211c15 100644
--- a/crates/typst/src/layout/place.rs
+++ b/crates/typst/src/layout/place.rs
@@ -46,7 +46,7 @@ pub struct PlaceElem {
/// Floating elements are positioned at the top or bottom of the page,
/// displacing in-flow content. They are always placed in the in-flow
/// order relative to each other, as well as before any content following
- /// a later [`flush`] element.
+ /// a later [`place.flush`] element.
///
/// ```example
/// #set page(height: 150pt)