From fd247eccf10ae9bf333f2c6b33bbefece1cb5b8f Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Thu, 18 Jan 2024 10:42:52 -0800 Subject: [PATCH] Update c-string literal stabilization release number. --- src/rust-2021/c-string-literals.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rust-2021/c-string-literals.md b/src/rust-2021/c-string-literals.md index 78d7762b..570794ac 100644 --- a/src/rust-2021/c-string-literals.md +++ b/src/rust-2021/c-string-literals.md @@ -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.