Skip to content

Commit 69d0416

Browse files
Adjust macro section
1 parent e118f99 commit 69d0416

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

posts/2021-07-29-Rust-1.54.0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ from the appropriate page on our website, and check out the
2424

2525
## What's in 1.54.0 stable
2626

27-
### Attributes can call macros!()
27+
### Attributes can invoke function-like macros
2828

29-
Rust 1.54 supports invoking function-like macros inside attributes. One notable use case for this is including documentation from other files into Rust doc comments. For example, if your project's README represents a good documentation comment, you can use `include_str!` to directly incorporate the contents. Previously, various workarounds allowed similar functionality, but from 1.54 this is much more ergonomic.
29+
Rust 1.54 supports invoking function-like macros inside attributes. Function-like macros can be either `macro_rules!` based or procedural macros which are invoked like `macro!(...)`. One notable use case for this is including documentation from other files into Rust doc comments. For example, if your project's README represents a good documentation comment, you can use `include_str!` to directly incorporate the contents. Previously, various workarounds allowed similar functionality, but from 1.54 this is much more ergonomic.
3030

3131

3232
```rust=

0 commit comments

Comments
 (0)