File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -80,9 +80,9 @@ This is much more concise and avoids repetitive code in examples.
8080
8181## Disadvantages
8282
83- As example is in a function, the code will not be tested. Though it still will
83+ As example is in a function, the code will not be tested. Though it will still be
8484checked to make sure it compiles when running a ` cargo test ` . So this pattern is
85- most useful when need ` no_run ` . With this, you do not need to add ` no_run ` .
85+ most useful when you need ` no_run ` . With this, you do not need to add ` no_run ` .
8686
8787## Discussion
8888
Original file line number Diff line number Diff line change 44
55If you have ` unsafe ` code, create the smallest possible module that can uphold
66the needed invariants to build a minimal safe interface upon the unsafety. Embed
7- this into a larger module that contains only safe code and presents an ergonomi
7+ this into a larger module that contains only safe code and presents an ergonomic
88interface. Note that the outer module can contain unsafe functions and methods
99that call directly into the unsafe code. Users may use this to gain speed benefits.
1010
You can’t perform that action at this time.
0 commit comments