Fix broken API doc links (#1020)

Also enable the lint to guarantee they stay un-broken.
This commit is contained in:
Alex Crichton
2020-02-28 12:44:27 -06:00
committed by GitHub
parent 121bbd3656
commit 0dbfad3aa7
4 changed files with 6 additions and 3 deletions

View File

@@ -109,6 +109,7 @@ impl Instance {
///
/// [inst]: https://webassembly.github.io/spec/core/exec/modules.html#exec-instantiation
/// [issue]: https://github.com/bytecodealliance/wasmtime/issues/727
/// [`ExternType`]: crate::ExternType
pub fn new(module: &Module, imports: &[Extern]) -> Result<Instance, Error> {
let store = module.store();
let config = store.engine().config();
@@ -158,7 +159,7 @@ impl Instance {
/// they're simply the values that are exported. To learn the value of each
/// export you'll need to consult [`Module::exports`]. The list returned
/// here maps 1:1 with the list that [`Module::exports`] returns, and
/// [`ExportType`] contains the name of each export.
/// [`ExportType`](crate::ExportType) contains the name of each export.
pub fn exports(&self) -> &[Extern] {
&self.exports
}