summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/model/eval.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/model/eval.rs b/src/model/eval.rs
index 6a93ca13..9ed6195e 100644
--- a/src/model/eval.rs
+++ b/src/model/eval.rs
@@ -59,7 +59,7 @@ pub fn eval(
/// A virtual machine.
///
-/// Holds the state needed to [evaluate](super::eval()) Typst sources. A new
+/// Holds the state needed to [evaluate](eval) Typst sources. A new
/// virtual machine is created for each module evaluation and function call.
pub struct Vm<'a> {
/// The compilation environment.
@@ -78,7 +78,7 @@ pub struct Vm<'a> {
impl<'a> Vm<'a> {
/// Create a new virtual machine.
- pub fn new(
+ pub(super) fn new(
world: Tracked<'a, dyn World>,
route: Tracked<'a, Route>,
location: SourceId,