Skip to content

Commit 249a154

Browse files
authored
Improve wording and fix typo (#242)
1 parent 606bcff commit 249a154

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

idioms/rustdoc-init.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
8484
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`.
8686

8787
## Discussion
8888

patterns/structural/unsafe-mods.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
If you have `unsafe` code, create the smallest possible module that can uphold
66
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
88
interface. Note that the outer module can contain unsafe functions and methods
99
that call directly into the unsafe code. Users may use this to gain speed benefits.
1010

0 commit comments

Comments
 (0)