From 36042ff222d70349f4c459384790ec40e1103bf9 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 11 Jul 2024 11:30:06 +0200 Subject: [PATCH] Remove `place.flush` from global scope (#4537) --- crates/typst/src/layout/mod.rs | 1 - crates/typst/src/layout/place.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/typst/src/layout/mod.rs b/crates/typst/src/layout/mod.rs index 85cdbae7a..739d09224 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::(); global.define_elem::(); global.define_elem::(); - global.define_elem::(); global.define_elem::(); global.define_elem::(); global.define_elem::(); diff --git a/crates/typst/src/layout/place.rs b/crates/typst/src/layout/place.rs index 78922c1bb..be211c150 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)