We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 03697eb + fec3182 commit 3bdc990Copy full SHA for 3bdc990
src/working-with-unsafe.md
@@ -92,7 +92,8 @@ capacity violates the invariants of Vec (that `cap` reflects the allocated space
92
in the Vec). This is not something the rest of Vec can guard against. It *has*
93
to trust the capacity field because there's no way to verify it.
94
95
-`unsafe` does more than pollute a whole function: it pollutes a whole *module*.
+Because it relies on invariants of a struct field, this `unsafe` code
96
+does more than pollute a whole function: it pollutes a whole *module*.
97
Generally, the only bullet-proof way to limit the scope of unsafe code is at the
98
module boundary with privacy.
99
0 commit comments