Skip to content

Commit

Permalink
Merge pull request #289 from ehuss/cstr-update
Browse files Browse the repository at this point in the history
Update c-string literal stabilization release number.
  • Loading branch information
ehuss authored Jan 18, 2024
2 parents bbffb07 + fd247ec commit baafacc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rust-2021/c-string-literals.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## Details

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.

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

0 comments on commit baafacc

Please sign in to comment.