Skip to content

Commit 8b30ee2

Browse files
gnzlbgCentril
andauthored
Update src/items/functions.md
Co-Authored-By: Mazdak Farrokhzad <[email protected]>
1 parent 8ce3484 commit 8b30ee2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/items/functions.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ An extern function _declaration_ via an [external block] can be used to
120120
provide an item for these functions that can be called by Rust code without
121121
providing their definition.
122122

123-
The default ABI of Rust functions like `fn foo() {}` is `"Rust"`. While we
123+
When `"extern" Abi?*` is omitted from `FunctionQualifiers`, the ABI `"Rust"` is assigned.
124+
For example:
124125
abbreviate the type of Rust functions like `foo` as `fn()`, this is actually a
125126
synonym for `extern "Rust" fn()`. That is, this:
126127

0 commit comments

Comments
 (0)