Skip to content

Commit be91042

Browse files
committed
Auto merge of #29082 - DenisKolodin:patch-3, r=alexcrichton
2 parents 747d951 + 5736c1d commit be91042

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/nomicon/safe-unsafe-meaning.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ Some examples of unsafe functions:
4141

4242
* `slice::get_unchecked` will perform unchecked indexing, allowing memory
4343
safety to be freely violated.
44-
* `ptr::offset` is an intrinsic that invokes Undefined Behavior if it is
45-
not "in bounds" as defined by LLVM.
44+
* every raw pointer to sized type has intrinsic `offset` method that invokes
45+
Undefined Behaviour if it is not "in bounds" as defined by LLVM.
4646
* `mem::transmute` reinterprets some value as having the given type,
4747
bypassing type safety in arbitrary ways. (see [conversions] for details)
4848
* All FFI functions are `unsafe` because they can do arbitrary things.

0 commit comments

Comments
 (0)