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/items/external-blocks.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,15 +102,17 @@ The `extern` keyword can be followed by an optional <abbr title="application bin
102
102
103
103
> [!EXAMPLE]
104
104
> ```rust
105
-
> // Interface to the Windows API
106
-
> unsafeextern"system" { }
105
+
> // Interface to the Windows API.
106
+
> unsafeextern"system" { /* ... */}
107
107
> ```
108
108
109
109
r[items.extern.abi.default]
110
110
IftheABIstringisnotspecified, itdefaultsto `"C"`.
111
111
112
112
> [!NOTE]
113
-
> ItisrecommendedtoalwaysspecifytheABItomakeitclearwhichABIisused.FutureversionsofRustmaymakethisarequirement, see [#134986](https://github.com/rust-lang/rust/issues/134986).
113
+
> The `extern` syntaxwithoutanexplicitABIisbeingphasedout, soit'sbettertoalwayswritetheABIexplicitly.
114
+
>
115
+
> Formoredetails, see [Rustissue #134986](https://github.com/rust-lang/rust/issues/134986).
0 commit comments