mirror of
https://github.com/fluencelabs/interface-types
synced 2024-12-04 15:20:20 +00:00
doc(interface-types) Fix typos.
This commit is contained in:
parent
858233a66d
commit
643659801c
@ -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]
|
||||
|
@ -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.
|
||||
|
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user