Skip to content

Commit 60d2621

Browse files
author
Henri Lunnikivi
committed
Expand first-in-book use of certain abbreviations
- Expand first-in-book use of foreign function interface (FFI) in safe-unsafe-meaning.md - Expand first-in-book use of application binary interface (ABI) in other-reprs.md
1 parent cfb1f2d commit 60d2621

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/other-reprs.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ still consumes a byte of space.
3737
difference from a struct is that the fields aren’t named.
3838

3939
* This is equivalent to one of `repr(u*)` (see the next section) for enums. The
40-
chosen size is the default enum size for the target platform's C ABI. Note that
41-
enum representation in C is implementation defined, so this is really a "best
42-
guess". In particular, this may be incorrect when the C code of interest is
43-
compiled with certain flags.
40+
chosen size is the default enum size for the target platform's C application
41+
binary interface (ABI). Note that enum representation in C is implementation
42+
defined, so this is really a "best guess". In particular, this may be incorrect
43+
when the C code of interest is compiled with certain flags.
4444

4545
* "C-like" enums with `repr(C)` or `repr(u*)` still may not be set to an
4646
integer value without a corresponding variant, even though this is

src/safe-unsafe-meaning.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ The standard library has a number of unsafe functions, including:
3838
type safety in arbitrary ways (see [conversions] for details).
3939
* Every raw pointer to a sized type has an `offset` method that
4040
invokes Undefined Behavior if the passed offset is not ["in bounds"][ptr_offset].
41-
* All FFI functions are `unsafe` to call because the other language can do
42-
arbitrary operations that the Rust compiler can't check.
41+
* All FFI (Foreign Function Interface) functions are `unsafe` to call because the
42+
other language can do arbitrary operations that the Rust compiler can't check.
4343

4444
As of Rust 1.0 there are exactly two unsafe traits:
4545

0 commit comments

Comments
 (0)