From 5793b14dd6b7311578f7d6b6f3e9d7642d461556 Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Thu, 5 Dec 2019 13:54:39 -0800 Subject: [PATCH] wig: update comments per code review --- crates/wasi-common/wig/src/raw_types.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/wasi-common/wig/src/raw_types.rs b/crates/wasi-common/wig/src/raw_types.rs index 7168dc3c97..15de007bdb 100644 --- a/crates/wasi-common/wig/src/raw_types.rs +++ b/crates/wasi-common/wig/src/raw_types.rs @@ -225,6 +225,7 @@ fn struct_has_union(s: &witx::StructDatatype) -> bool { }) } +/// Test whether the type referred to has a target-specific size. fn tref_has_target_size(tref: &witx::TypeRef) -> bool { match tref { witx::TypeRef::Name(nt) => namedtype_has_target_size(&nt), @@ -232,7 +233,7 @@ fn tref_has_target_size(tref: &witx::TypeRef) -> bool { } } -/// Test whether the given type has a target-specific size. +/// Test whether the given named type has a target-specific size. fn namedtype_has_target_size(nt: &witx::NamedType) -> bool { if nt.name.as_str() == "size" { true @@ -241,7 +242,7 @@ fn namedtype_has_target_size(nt: &witx::NamedType) -> bool { } } -/// Test whether the given type ident has a target-specific size. +/// Test whether the given type has a target-specific size. fn type_has_target_size(ty: &witx::Type) -> bool { match ty { witx::Type::Builtin(witx::BuiltinType::String) => true,