Touch up descriptions of has_type

This commit is contained in:
Alex Crichton
2019-04-12 10:54:36 -07:00
parent 657b97b6d8
commit c4776becbb
2 changed files with 30 additions and 19 deletions

View File

@ -589,6 +589,7 @@ impl ToTokens for ast::ImportType {
};
let is_type_of = self.is_type_of.as_ref().map(|is_type_of| quote! {
#[inline]
fn is_type_of(val: &JsValue) -> bool {
let is_type_of: fn(&JsValue) -> bool = #is_type_of;
is_type_of(val)