We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bbffb07 + fd247ec commit baafaccCopy full SHA for baafacc
src/rust-2021/c-string-literals.md
@@ -8,7 +8,7 @@
8
9
## Details
10
11
-Starting with Rust 1.76, C-strings can be written using C-string literal syntax with the `c` or `cr` prefix.
+Starting with Rust 1.77, C-strings can be written using C-string literal syntax with the `c` or `cr` prefix.
12
13
Previously, it was challenging to properly produce a valid string literal that could interoperate with C APIs which terminate with a NUL byte.
14
The [`cstr`] crate was a popular solution, but that required compiling a proc-macro which was quite expensive.
0 commit comments