Skip to content

Commit d4c010d

Browse files
committed
Switch ABI list to em dashes, fix typographical errors
The ABI list was using em dashes where it should use en dashes and contained some other typographical errors. Let's fix these.
1 parent 68a9928 commit d4c010d

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

src/items/external-blocks.md

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -111,55 +111,53 @@ r[items.extern.abi.standard]
111111
The following ABI strings are supported on all platforms:
112112

113113
r[items.extern.abi.rust]
114-
* `unsafe extern "Rust"` -- The default ABI when you write a normal `fn foo()` in any
114+
* `unsafe extern "Rust"` --- The default ABI when you write a normal `fn foo()` in any
115115
Rust code.
116116

117117
r[items.extern.abi.c]
118-
* `unsafe extern "C"` -- This is the same as `extern fn foo()`; whatever the default
118+
* `unsafe extern "C"` --- This is the same as `extern fn foo()`; whatever the default
119119
your C compiler supports.
120120

121121
r[items.extern.abi.system]
122-
* `unsafe extern "system"` -- Usually the same as `extern "C"`, except on Win32, in
123-
which case it's `"stdcall"`, or what you should use to link to the Windows
124-
API itself
122+
* `unsafe extern "system"` --- Usually the same as `extern "C"`, except on Win32, in which case it's `"stdcall"`, or what you should use to link to the Windows API itself.
125123

126124
r[items.extern.abi.unwind]
127-
* `extern "C-unwind"` and `extern "system-unwind"` -- identical to `"C"` and `"system"`, respectively, but with [different behavior][unwind-behavior] when the callee unwinds (by panicking or throwing a C++ style exception).
125+
* `extern "C-unwind"` and `extern "system-unwind"` --- Identical to `"C"` and `"system"`, respectively, but with [different behavior][unwind-behavior] when the callee unwinds (by panicking or throwing a C++ style exception).
128126

129127
r[items.extern.abi.platform]
130128
There are also some platform-specific ABI strings:
131129

132130
r[items.extern.abi.cdecl]
133-
* `unsafe extern "cdecl"` -- The default for x86_32 C code.
131+
* `unsafe extern "cdecl"` --- The default for x86_32 C code.
134132
* Only available on x86_32 targets.
135133

136134
r[items.extern.abi.stdcall]
137-
* `unsafe extern "stdcall"` -- The default for the Win32 API on x86_32.
135+
* `unsafe extern "stdcall"` --- The default for the Win32 API on x86_32.
138136
* Only available on x86_32 targets.
139137

140138
r[items.extern.abi.win64]
141-
* `unsafe extern "win64"` -- The default for C code on x86_64 Windows.
139+
* `unsafe extern "win64"` --- The default for C code on x86_64 Windows.
142140
* Only available on x86_64 targets.
143141

144142
r[items.extern.abi.sysv64]
145-
* `unsafe extern "sysv64"` -- The default for C code on non-Windows x86_64.
143+
* `unsafe extern "sysv64"` --- The default for C code on non-Windows x86_64.
146144
* Only available on x86_64 targets.
147145

148146
r[items.extern.abi.aapcs]
149-
* `unsafe extern "aapcs"` -- The default for ARM.
147+
* `unsafe extern "aapcs"` --- The default for ARM.
150148
* Only available on ARM32 targets.
151149

152150
r[items.extern.abi.fastcall]
153-
* `unsafe extern "fastcall"` -- The `fastcall` ABI -- corresponds to MSVC's
151+
* `unsafe extern "fastcall"` --- The `fastcall` ABI --- corresponds to MSVC's
154152
`__fastcall` and GCC and clang's `__attribute__((fastcall))`.
155153
* Only available on x86_32 targets.
156154

157155
r[items.extern.abi.thiscall]
158-
* `unsafe extern "thiscall"` -- The default for C++ member functions on x86_32 MSVC -- corresponds to MSVC's `__thiscall` and GCC and clang's `__attribute__((thiscall))`.
156+
* `unsafe extern "thiscall"` --- The default for C++ member functions on x86_32 MSVC --- corresponds to MSVC's `__thiscall` and GCC and clang's `__attribute__((thiscall))`.
159157
* Only available on x86_32 targets.
160158

161159
r[items.extern.abi.efiapi]
162-
* `unsafe extern "efiapi"` -- The ABI used for [UEFI] functions.
160+
* `unsafe extern "efiapi"` --- The ABI used for [UEFI] functions.
163161
* Only available on x86 and ARM targets (32bit and 64bit).
164162

165163
r[items.extern.abi.platform-unwind-variants]

0 commit comments

Comments
 (0)