Improve wording and fix typo (#242)

pull/243/head
Gianluca Recchia 3 years ago committed by GitHub
parent 606bcffa44
commit 249a154e81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -80,9 +80,9 @@ This is much more concise and avoids repetitive code in examples.
## Disadvantages
As example is in a function, the code will not be tested. Though it still will
As example is in a function, the code will not be tested. Though it will still be
checked to make sure it compiles when running a `cargo test`. So this pattern is
most useful when need `no_run`. With this, you do not need to add `no_run`.
most useful when you need `no_run`. With this, you do not need to add `no_run`.
## Discussion

@ -4,7 +4,7 @@
If you have `unsafe` code, create the smallest possible module that can uphold
the needed invariants to build a minimal safe interface upon the unsafety. Embed
this into a larger module that contains only safe code and presents an ergonomi
this into a larger module that contains only safe code and presents an ergonomic
interface. Note that the outer module can contain unsafe functions and methods
that call directly into the unsafe code. Users may use this to gain speed benefits.

Loading…
Cancel
Save