From 7eebafa7837ec173a7b2064ae60fd45b5413d17c Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 23 Nov 2023 16:25:49 +0100 Subject: Merge `typst` and `typst-library` --- crates/typst-syntax/src/reparser.rs | 2 +- crates/typst-syntax/src/span.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/typst-syntax/src') diff --git a/crates/typst-syntax/src/reparser.rs b/crates/typst-syntax/src/reparser.rs index 1374bde0..1b7dc42f 100644 --- a/crates/typst-syntax/src/reparser.rs +++ b/crates/typst-syntax/src/reparser.rs @@ -11,7 +11,7 @@ use crate::{ /// ultimately reparsed. /// /// The high-level API for this function is -/// [`Source::edit`](super::Source::edit). +/// [`Source::edit`](crate::Source::edit). pub fn reparse( root: &mut SyntaxNode, text: &str, diff --git a/crates/typst-syntax/src/span.rs b/crates/typst-syntax/src/span.rs index 5b8fd693..14e5e216 100644 --- a/crates/typst-syntax/src/span.rs +++ b/crates/typst-syntax/src/span.rs @@ -7,7 +7,7 @@ use crate::FileId; /// A unique identifier for a syntax node. /// /// This is used throughout the compiler to track which source section an error -/// or element stems from. Can be [mapped back](super::Source::range) to a byte +/// or element stems from. Can be [mapped back](crate::Source::range) to a byte /// range for user facing display. /// /// During editing, the span values stay mostly stable, even for nodes behind an @@ -76,7 +76,7 @@ impl Span { Some(FileId::from_raw(bits)) } - /// The unique number of the span within its [`Source`](super::Source). + /// The unique number of the span within its [`Source`](crate::Source). pub const fn number(self) -> u64 { self.0.get() & ((1 << Self::BITS) - 1) } -- cgit v1.2.3