@@ -144,7 +144,7 @@ extern "Rust" fn foo() {}
144
144
```
145
145
146
146
Functions in Rust can be called by foreign code, and using an ABI that
147
- differs from Rust allows, for example, to provide functions that can be
147
+ differs from Rust allows, for example, to provide functions that can be
148
148
called from other programming languages like C:
149
149
150
150
``` rust
@@ -156,7 +156,7 @@ extern "C" fn new_i32() -> i32 { 0 }
156
156
extern " stdcall" fn new_i32_stdcall () -> i32 { 0 }
157
157
```
158
158
159
- Just as with [ external block] , when the ` extern ` keyword is used and the ` "ABI `
159
+ Just as with [ external block] , when the ` extern ` keyword is used and the ` "ABI `
160
160
is omitted, the ABI used defaults to ` "C" ` . That is, this:
161
161
162
162
``` rust
@@ -306,7 +306,7 @@ async fn safe_example() {
306
306
// An `unsafe` block is required to invoke the function initially:
307
307
let p = 22;
308
308
let future = unsafe { unsafe_example(&p) };
309
-
309
+
310
310
// But no `unsafe` block required here. This will
311
311
// read the value of `p`:
312
312
let q = future.await;
@@ -360,7 +360,7 @@ attributes macros.
360
360
[ _Type_ ] : ../types.md#type-expressions
361
361
[ _WhereClause_ ] : generics.md#where-clauses
362
362
[ const context ] : ../const_eval.md#const-context
363
- [ external blocks ] : external-blocks.md
363
+ [ external block ] : external-blocks.md
364
364
[ path ] : ../paths.md
365
365
[ block ] : ../expressions/block-expr.md
366
366
[ variables ] : ../variables.md
0 commit comments