mirror of
https://github.com/typst/typst
synced 2025-08-23 19:24:14 +08:00
docs: update doc comment mentioning LoadedWithin
This commit is contained in:
parent
788106005f
commit
602d831ffa
@ -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)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user