doc(interface-types) Fix typos.

This commit is contained in:
Ivan Enderlin 2020-04-03 14:46:59 +02:00
parent 858233a66d
commit 643659801c
3 changed files with 4 additions and 4 deletions

View File

@ -12,8 +12,8 @@ nom = "5.1"
wast = "8.0"
# `serde` is useful only to simplify the users' life. It is not
# required by WIT itself, is is used to transform WIT values like
# `record`s to Rust sum types.
# required by WIT itself, is is used to cross the boundary between the
# host and WIT more easily, but it is not used inside Wasm.
serde = { version = "1.0", features = ["derive"], optional = true }
[features]

View File

@ -53,7 +53,7 @@ pub enum InterfaceType {
Record(RecordType),
}
/// Representing a record type.
/// Represents a record type.
#[derive(PartialEq, Debug, Clone)]
pub struct RecordType {
/// Types representing the fields.

View File

@ -106,7 +106,7 @@ fn ty<'input, E: ParseError<&'input [u8]>>(
Ok((input, ty))
}
/// Parse an record type.
/// Parse a record type.
fn record_type<'input, E: ParseError<&'input [u8]>>(
input: &'input [u8],
) -> IResult<&'input [u8], RecordType, E> {