mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-29 12:22:18 +00:00
doc(interface-types) Fix typos.
This commit is contained in:
parent
2011fda31d
commit
6cef1c244a
@ -12,8 +12,8 @@ nom = "5.1"
|
|||||||
wast = "8.0"
|
wast = "8.0"
|
||||||
|
|
||||||
# `serde` is useful only to simplify the users' life. It is not
|
# `serde` is useful only to simplify the users' life. It is not
|
||||||
# required by WIT itself, is is used to transform WIT values like
|
# required by WIT itself, is is used to cross the boundary between the
|
||||||
# `record`s to Rust sum types.
|
# host and WIT more easily, but it is not used inside Wasm.
|
||||||
serde = { version = "1.0", features = ["derive"], optional = true }
|
serde = { version = "1.0", features = ["derive"], optional = true }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
@ -53,7 +53,7 @@ pub enum InterfaceType {
|
|||||||
Record(RecordType),
|
Record(RecordType),
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Representing a record type.
|
/// Represents a record type.
|
||||||
#[derive(PartialEq, Debug, Clone)]
|
#[derive(PartialEq, Debug, Clone)]
|
||||||
pub struct RecordType {
|
pub struct RecordType {
|
||||||
/// Types representing the fields.
|
/// Types representing the fields.
|
||||||
|
@ -106,7 +106,7 @@ fn ty<'input, E: ParseError<&'input [u8]>>(
|
|||||||
Ok((input, ty))
|
Ok((input, ty))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Parse an record type.
|
/// Parse a record type.
|
||||||
fn record_type<'input, E: ParseError<&'input [u8]>>(
|
fn record_type<'input, E: ParseError<&'input [u8]>>(
|
||||||
input: &'input [u8],
|
input: &'input [u8],
|
||||||
) -> IResult<&'input [u8], RecordType, E> {
|
) -> IResult<&'input [u8], RecordType, E> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user