summaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-11-19 18:17:06 +0100
committerLaurenz <laurmaedje@gmail.com>2023-11-19 18:17:06 +0100
commit35d6a891bc739a0f5dc68da54b1cf404a66e2069 (patch)
tree88de282ccdc3b9bed173ef83e936213a5bb12480 /crates
parentc97a01616abd3af6511ceac28a01ac6d3023ae83 (diff)
Rename typeset function to layout
Diffstat (limited to 'crates')
-rw-r--r--crates/typst/src/lib.rs2
-rw-r--r--crates/typst/src/model/mod.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/crates/typst/src/lib.rs b/crates/typst/src/lib.rs
index bae1e4b4..a3f7191e 100644
--- a/crates/typst/src/lib.rs
+++ b/crates/typst/src/lib.rs
@@ -86,7 +86,7 @@ pub fn compile(world: &dyn World, tracer: &mut Tracer) -> SourceResult<Document>
);
// Try to typeset it.
- let res = module.and_then(|module| model::typeset(world, tracer, &module.content()));
+ let res = module.and_then(|module| model::layout(world, tracer, &module.content()));
// Deduplicate errors.
res.map_err(|err| {
diff --git a/crates/typst/src/model/mod.rs b/crates/typst/src/model/mod.rs
index de50f24a..11f95eeb 100644
--- a/crates/typst/src/model/mod.rs
+++ b/crates/typst/src/model/mod.rs
@@ -37,10 +37,10 @@ use crate::eval::Tracer;
use crate::syntax::Span;
use crate::World;
-/// Typeset content into a fully layouted document.
+/// Layout content.
#[comemo::memoize]
#[tracing::instrument(skip(world, tracer, content))]
-pub fn typeset(
+pub fn layout(
world: Tracked<dyn World + '_>,
mut tracer: TrackedMut<Tracer>,
content: &Content,