Fix links between docs

This commit is contained in:
Nick Fitzgerald
2021-09-17 11:01:31 -07:00
parent a5b86cf954
commit 72f38617ca

View File

@@ -161,9 +161,9 @@ impl<T> Linker<T> {
/// Creates a new [`Linker`]. /// Creates a new [`Linker`].
/// ///
/// The linker will define functions within the context of the `engine` /// The linker will define functions within the context of the `engine`
/// provided and can only instantiate modules for a [`Store`] that is also /// provided and can only instantiate modules for a [`Store`][crate::Store]
/// defined within the same [`Engine`]. Usage of stores with different /// that is also defined within the same [`Engine`]. Usage of stores with
/// [`Engine`]s may cause a panic when used with this [`Linker`]. /// different [`Engine`]s may cause a panic when used with this [`Linker`].
pub fn new(engine: &Engine) -> Linker<T> { pub fn new(engine: &Engine) -> Linker<T> {
Linker { Linker {
engine: engine.clone(), engine: engine.clone(),
@@ -429,9 +429,9 @@ impl<T> Linker<T> {
/// name in the instance itself. /// name in the instance itself.
/// ///
/// Note that when this API is used the [`Linker`] is no longer compatible /// Note that when this API is used the [`Linker`] is no longer compatible
/// with multi-[`Store` ] instantiation because the items defined within /// with multi-[`Store`][crate::Store] instantiation because the items
/// this store will belong to the `store` provided, and only the `store` /// defined within this store will belong to the `store` provided, and only
/// provided. /// the `store` provided.
/// ///
/// # Errors /// # Errors
/// ///