From 558f2f9f756ffa94f4dc144e751c26fa03203475 Mon Sep 17 00:00:00 2001 From: Ruslan Akbashev Date: Wed, 5 Nov 2025 01:51:58 +0400 Subject: [PATCH] fix freestanding `let` in a module and wrong brackets --- src/attributes.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/attributes.rst b/src/attributes.rst index 7d3fcb24..683f56e1 100644 --- a/src/attributes.rst +++ b/src/attributes.rst @@ -62,8 +62,8 @@ an :t:`attribute`. .. code-block:: rust - #[cfg[target_os = "linux"]] - mod linux_only_module { + #[cfg(target_os = "linux")] + fn linux_only_function() { #![allow(unused_variables)] let unused = ();