We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 747d951 + 5736c1d commit be91042Copy full SHA for be91042
src/doc/nomicon/safe-unsafe-meaning.md
@@ -41,8 +41,8 @@ Some examples of unsafe functions:
41
42
* `slice::get_unchecked` will perform unchecked indexing, allowing memory
43
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.
+* every raw pointer to sized type has intrinsic `offset` method that invokes
+ Undefined Behaviour if it is not "in bounds" as defined by LLVM.
46
* `mem::transmute` reinterprets some value as having the given type,
47
bypassing type safety in arbitrary ways. (see [conversions] for details)
48
* All FFI functions are `unsafe` because they can do arbitrary things.
0 commit comments