| commit | 25ca093e23ff32a9900c07d29decd0d8c3d5bf19 | [log] [tgz] |
|---|---|---|
| author | David Tolnay <dtolnay@gmail.com> | Mon Apr 20 01:36:38 2020 -0700 |
| committer | David Tolnay <dtolnay@gmail.com> | Mon Apr 20 01:36:43 2020 -0700 |
| tree | 386e9631d9a4d73590a1545e42774e269bb922ac | |
| parent | fb6e386cf40a36f4064358bf441b3fe5686dc326 [diff] [blame] |
Fix placement of doc comment on c++ method shim
diff --git a/macro/src/expand.rs b/macro/src/expand.rs index 91208e6..1bc2fd1 100644 --- a/macro/src/expand.rs +++ b/macro/src/expand.rs
@@ -302,8 +302,8 @@ } }, Some(receiver_type) => quote! { - #doc impl #receiver_type { + #doc pub fn #ident(#(#all_args,)*) #ret { extern "C" { #decl