fix ambiguity about start in doc (#3864)

This commit is contained in:
Nikolay Volf
2019-10-22 13:02:20 +03:00
committed by Bastian Köcher
parent 8117ba6b31
commit d739e86798
+1 -1
View File
@@ -171,7 +171,7 @@ pub struct Instance<T> {
impl<T> Instance<T> {
/// Instantiate a module with the given [`EnvironmentDefinitionBuilder`]. It will
/// run the `start` function with the given `state`.
/// run the `start` function (if it is present in the module) with the given `state`.
///
/// Returns `Err(Error::Module)` if this module can't be instantiated with the given
/// environment. If execution of `start` function generated a trap, then `Err(Error::Execution)` will