Skip to content

Commit a1d719d

Browse files
committed
rollup merge of #18347 : cakebaker/ffi
2 parents 15547e1 + 622ae41 commit a1d719d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/doc/guide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5339,9 +5339,9 @@ There are two circumstances where Rust's safety provisions don't work well.
53395339
The first is when interfacing with C code, and the second is when building
53405340
certain kinds of abstractions.
53415341

5342-
Rust has support for FFI (which you can read about in the [FFI
5343-
Guide](guide-ffi.html)), but can't guarantee that the C code will be safe.
5344-
Therefore, Rust marks such functions with the `unsafe`
5342+
Rust has support for [FFI](http://en.wikipedia.org/wiki/Foreign_function_interface)
5343+
(which you can read about in the [FFI Guide](guide-ffi.html)), but can't guarantee
5344+
that the C code will be safe. Therefore, Rust marks such functions with the `unsafe`
53455345
keyword, which indicates that the function may not behave properly.
53465346

53475347
Second, if you'd like to create some sort of shared-memory data structure, Rust

0 commit comments

Comments
 (0)