diff --git a/Cargo.toml b/Cargo.toml index 34e19c4..3b9c179 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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] diff --git a/src/ast.rs b/src/ast.rs index f0e0308..b4eabd8 100644 --- a/src/ast.rs +++ b/src/ast.rs @@ -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. diff --git a/src/decoders/binary.rs b/src/decoders/binary.rs index 1d8284e..68396cf 100644 --- a/src/decoders/binary.rs +++ b/src/decoders/binary.rs @@ -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> {