You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/abi.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,10 +67,11 @@ r[abi.no_mangle]
67
67
r[abi.no_mangle.intro]
68
68
The *`no_mangle` attribute* may be used on functions and statics to disable standard symbol name mangling. The symbol for the item will be the identifier of the item's name.
69
69
70
-
```rust
71
-
#[unsafe(no_mangle)]
72
-
extern"C"fnfoo() {}
73
-
```
70
+
> [!EXAMPLE]
71
+
> ```rust
72
+
> #[unsafe(no_mangle)]
73
+
> extern"C"fnfoo() {}
74
+
> ```
74
75
75
76
r[abi.no_mangle.syntax]
76
77
The `no_mangle` attributeusesthe [MetaWord] syntaxandthusdoesnottakeanyinputs.
0 commit comments