File tree 2 files changed +3
-3
lines changed
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.
80
80
81
81
## Disadvantages
82
82
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
84
84
checked 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 ` .
86
86
87
87
## Discussion
88
88
Original file line number Diff line number Diff line change 4
4
5
5
If you have ` unsafe ` code, create the smallest possible module that can uphold
6
6
the 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
8
8
interface. Note that the outer module can contain unsafe functions and methods
9
9
that call directly into the unsafe code. Users may use this to gain speed benefits.
10
10
You can’t perform that action at this time.
0 commit comments