mirror of
https://github.com/typst/typst
synced 2025-08-24 03:34: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.
|
/// A call site independent error that occurred during data loading.
|
||||||
/// This avoids polluting the memoization with [`Span`]s and [`FileId`]s from source files.
|
/// 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`]
|
/// Can be turned into a [`SourceDiagnostic`] using the [`LoadedWithin::within`] method
|
||||||
/// or [`LoadedAt::in_invalid_text`] methods available on [`LoadResult`].
|
/// available on [`LoadResult`].
|
||||||
///
|
///
|
||||||
/// [`FileId`]: typst_syntax::FileId
|
/// [`FileId`]: typst_syntax::FileId
|
||||||
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
|
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user