1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-06-25 18:23:15 +02:00
This commit is contained in:
Pavel Roskin
2023-12-20 10:21:54 -08:00
committed by GitHub
parent cf81b7a88d
commit 30f8e50b43
5 changed files with 5 additions and 5 deletions

View File

@ -51,7 +51,7 @@ In the case of pointer dereferences, this means that the pointers must be
In most cases the pointer must also be properly aligned.
The "NOT SAFE" sectoin gives an example of a common kind of UB bug: `*r1` has
The "NOT SAFE" section gives an example of a common kind of UB bug: `*r1` has
the `'static` lifetime, so `r3` has type `&'static String`, and thus outlives
`s`. Creating a reference from a pointer requires _great care_.