Minor edits to documentation. (#140)

This commit is contained in:
Eric Findlay 2018-11-09 23:39:40 +09:00 committed by Sergey Pepyakin
parent c877d64508
commit 7b4c648acb
1 changed files with 5 additions and 5 deletions

View File

@ -1,10 +1,10 @@
//! # wasmi //! # wasmi
//! //!
//! This library allows to load WebAssembly modules in binary format and invoke their functions. //! This library allows WebAssembly modules to be loaded in binary format and their functions invoked.
//! //!
//! # Introduction //! # Introduction
//! //!
//! WebAssembly (wasm) is a safe, portable and compact format that designed for efficient execution. //! WebAssembly (wasm) is a safe, portable and compact format that is designed for efficient execution.
//! //!
//! Wasm code is distributed in the form of modules that contains definitions of: //! Wasm code is distributed in the form of modules that contains definitions of:
//! //!
@ -20,15 +20,15 @@
//! //!
//! ## Loading and Validation //! ## Loading and Validation
//! //!
//! Before execution, a module must be validated. This process checks that module is well-formed //! Before execution, a module must be validated. This process checks that the module is well-formed
//! and makes only allowed operations. //! and makes only allowed operations.
//! //!
//! A valid module can't access memory out of its sandbox, can't cause stack underflows //! A valid module can't access memory outside its sandbox, can't cause stack underflows
//! and can only call functions with correct signatures. //! and can only call functions with correct signatures.
//! //!
//! ## Instantiation //! ## Instantiation
//! //!
//! In order to execute code from a wasm module, it must be instatiated. //! In order to execute code from a wasm module, it must be instantiated.
//! Instantiation includes the following steps: //! Instantiation includes the following steps:
//! //!
//! 1. Creating an empty module instance. //! 1. Creating an empty module instance.