Skip to content

Commit 5be0423

Browse files
authored
Fix parenthesis on unsafe(no_mangle)
1 parent 2afe85e commit 5be0423

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/abi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ r[abi.symbol-name.names]
256256
The *`export_name` attribute* shall only be applied to a `static` or `fn` item. The *`export_name` attribute* shall not be applied to an item declared within an [`extern` block].
257257

258258
```rust
259-
#[unsafe(no_mangle(]
259+
#[unsafe(no_mangle)]
260260
extern "C" fn foo(x: i32) -> i32 {
261261
x + 1
262262
}

0 commit comments

Comments
 (0)