docs: update doc comment mentioning LoadedWithin

This commit is contained in:
Tobias Schmitz 2025-06-10 13:16:25 +02:00
parent 788106005f
commit 602d831ffa
No known key found for this signature in database

View File

@ -575,8 +575,8 @@ pub type LoadResult<T> = Result<T, LoadError>;
/// 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)]