summaryrefslogtreecommitdiff
path: root/src/model/library.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-25 10:36:31 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-25 12:16:13 +0100
commitbf5edbbbbb75120d065d1c9587ccfa4eed4fdca1 (patch)
tree956af910ab27a8cec0db83171cd3f0b6d0570a60 /src/model/library.rs
parent96f72eee6c6b595164c7a0576c407d7a590661db (diff)
Tidy up
Diffstat (limited to 'src/model/library.rs')
-rw-r--r--src/model/library.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/model/library.rs b/src/model/library.rs
index 8433e514..2ee09b27 100644
--- a/src/model/library.rs
+++ b/src/model/library.rs
@@ -12,7 +12,7 @@ use crate::geom::{Abs, Dir};
use crate::util::{hash128, EcoString};
use crate::World;
-/// A Typst standard library.
+/// Definition of Typst's standard library.
#[derive(Debug, Clone, Hash)]
pub struct Library {
/// The scope containing definitions that are available everywhere.
@@ -23,13 +23,13 @@ pub struct Library {
pub items: LangItems,
}
-/// Definition of certain standard library items the language is aware of.
+/// Definition of library items the language is aware of.
#[derive(Clone)]
pub struct LangItems {
/// The root layout function.
pub layout: fn(
- content: &Content,
world: Tracked<dyn World>,
+ content: &Content,
styles: StyleChain,
) -> SourceResult<Vec<Frame>>,
/// Access the em size.