Skip to content

Commit

Permalink
More doc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DelSkayn committed Sep 18, 2023
1 parent 220220a commit 61e084c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 3 additions & 8 deletions macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ mod trace;
/// /// Make a field enumerable.
/// #[qjs(get, set, enumerable)]
/// another_value: u32,
/// /// Make a field configurable.
/// #[qjs(get, set, configurable)]
/// another_configurable_field: u32,
/// }
///
/// pub fn main() {
Expand All @@ -68,7 +65,6 @@ mod trace;
/// inner_object: Object::new(ctx.clone()).unwrap(),
/// some_value: 1,
/// another_value: 2,
/// another_configurable_field: 3,
/// },
/// )
/// .unwrap();
Expand All @@ -80,7 +76,7 @@ mod trace;
/// if(t.someValue !== 1){
/// throw new Error(1)
/// }"#
/// )
/// ).unwrap();
/// })
/// }
/// ```
Expand Down Expand Up @@ -208,10 +204,9 @@ pub fn function(attr: TokenStream1, item: TokenStream1) -> TokenStream1 {
/// if(nv.value !== 5){
/// throw new Error('invalid value')
/// }
/// "
/// "#,
/// )
/// })
/// ).catch(&ctx).unwrap();
/// });
/// }
/// ```
#[proc_macro_attribute]
Expand Down
2 changes: 1 addition & 1 deletion macro/src/methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ pub(crate) fn expand(options: OptionList<ImplOption>, item: ItemImpl) -> TokenSt
//let mut consts = Vec::new();

for item in items {
match dbg!(item) {
match item {
syn::ImplItem::Const(_item) => {}
syn::ImplItem::Fn(item) => {
let function = Method::parse_impl_fn(item, &self_ty);
Expand Down

0 comments on commit 61e084c

Please sign in to comment.