fix cargo expand in macro.md

与前文不符,应使用 `cargo expand --bin hello_macro` in hello_macro root directory
pull/1325/head
Gengen Wang 1 year ago committed by GitHub
parent c1b393dfc9
commit 5506ac33cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -451,7 +451,7 @@ fn impl_hello_macro(ast: &syn::DeriveInput) -> TokenStream {
在运行之前,可以显示用 expand 展开宏,观察是否有错误或是否符合预期: 在运行之前,可以显示用 expand 展开宏,观察是否有错误或是否符合预期:
```shell ```shell
$ cargo expand --lib hello_macro $ cargo expand --bin hello_macro
``` ```
```rust ```rust
struct Sunfei; struct Sunfei;

Loading…
Cancel
Save