Skip to content

Commit baafacc

Browse files
authored
Merge pull request #289 from ehuss/cstr-update
Update c-string literal stabilization release number.
2 parents bbffb07 + fd247ec commit baafacc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rust-2021/c-string-literals.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
## Details
1010

11-
Starting with Rust 1.76, C-strings can be written using C-string literal syntax with the `c` or `cr` prefix.
11+
Starting with Rust 1.77, C-strings can be written using C-string literal syntax with the `c` or `cr` prefix.
1212

1313
Previously, it was challenging to properly produce a valid string literal that could interoperate with C APIs which terminate with a NUL byte.
1414
The [`cstr`] crate was a popular solution, but that required compiling a proc-macro which was quite expensive.

0 commit comments

Comments
 (0)