From 643659801c85179f3192a45f81c5349aa7e0f6dc Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Fri, 3 Apr 2020 14:46:59 +0200 Subject: [PATCH] doc(interface-types) Fix typos. --- Cargo.toml | 4 ++-- src/ast.rs | 2 +- src/decoders/binary.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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> {