From 602d831ffaa44dec877cf1af16114375381df4a1 Mon Sep 17 00:00:00 2001 From: Tobias Schmitz Date: Tue, 10 Jun 2025 13:16:25 +0200 Subject: [PATCH] docs: update doc comment mentioning LoadedWithin --- crates/typst-library/src/diag.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/typst-library/src/diag.rs b/crates/typst-library/src/diag.rs index b84b80679..bbf05dcf9 100644 --- a/crates/typst-library/src/diag.rs +++ b/crates/typst-library/src/diag.rs @@ -575,8 +575,8 @@ pub type LoadResult = Result; /// A call site independent error that occurred during data loading. /// This avoids polluting the memoization with [`Span`]s and [`FileId`]s from source files. -/// Can be turned into a [`SourceDiagnostic`] using the [`LoadedAt::in_text`] -/// or [`LoadedAt::in_invalid_text`] methods available on [`LoadResult`]. +/// Can be turned into a [`SourceDiagnostic`] using the [`LoadedWithin::within`] method +/// available on [`LoadResult`]. /// /// [`FileId`]: typst_syntax::FileId #[derive(Clone, Debug, PartialEq, Eq, Hash)]