Skip to content

Commit 5ad7afc

Browse files
committed
auto merge of #16717 : tshepang/rust/misplaced-comma, r=pcwalton
Also: * Remove unseeming repetition. * By now, the reader has already heard that Rust is safe by default, so reduce the overlong sentence, making it easier to read.
2 parents 471862f + 3e94401 commit 5ad7afc

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
@@ -5531,9 +5531,9 @@ There are two circumstances where Rust's safety provisions don't work well.
55315531
The first is when interfacing with C code, and the second is when building
55325532
certain kinds of abstractions.
55335533

5534-
Rust has support for FFI, (which you can read about in the [FFI
5535-
Guide](guide-ffi.html)) but Rust can't guarantee that the C code will be safe,
5536-
like Rust's will. Therefore, Rust marks such functions with the `unsafe`
5534+
Rust has support for FFI (which you can read about in the [FFI
5535+
Guide](guide-ffi.html)), but can't guarantee that the C code will be safe.
5536+
Therefore, Rust marks such functions with the `unsafe`
55375537
keyword, which indicates that the function may not behave properly.
55385538

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

0 commit comments

Comments
 (0)