Skip to content

Commit 787175e

Browse files
Update posts/2024-06-13-Rust-1.79.0.md
Co-authored-by: Kevin Reid <kpreid@switchb.org>
1 parent ecfee50 commit 787175e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

posts/2024-06-13-Rust-1.79.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ explicitly entering a const context without requiring extra declarations (e.g.,
2626
defining `const` items or associated constants on a trait).
2727

2828
Unlike const items (`const ITEM: ... = ...`), inline consts are able to make
29-
use of in-scope generics, making them particularly useful for inline code snippets. For example, a pattern like:
29+
use of in-scope generics, and have their type inferred rather than written explicitly, making them particularly useful for inline code snippets. For example, a pattern like:
3030

3131
```rust
3232
const EMPTY: Option<Vec<u8>> = None;

0 commit comments

Comments
 (0)