Skip to content

Commit 558f2f9

Browse files
committed
fix freestanding let in a module and wrong brackets
1 parent d1b7f1c commit 558f2f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/attributes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ an :t:`attribute`.
6262

6363
.. code-block:: rust
6464
65-
#[cfg[target_os = "linux"]]
66-
mod linux_only_module {
65+
#[cfg(target_os = "linux")]
66+
fn linux_only_function() {
6767
#![allow(unused_variables)]
6868
6969
let unused = ();

0 commit comments

Comments
 (0)