Skip to content

Commit 43ff006

Browse files
Merge #334
334: Update singletons.md r=eldruin a=AlNotAlbert fixing typo Co-authored-by: MustBeAL <[email protected]>
2 parents b814790 + 0a4de5d commit 43ff006

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/peripherals/singletons.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ But this has a few problems. It is a mutable global variable, and in Rust, these
2525

2626
## How do we do this in Rust?
2727

28-
Instead of just making our peripheral a global variable, we might instead decide to make a global variable, in this case called `PERIPHERALS`, which contains an `Option<T>` for each of our peripherals.
28+
Instead of just making our peripheral a global variable, we might instead decide to make a structure, in this case called `PERIPHERALS`, which contains an `Option<T>` for each of our peripherals.
2929

3030
```rust,ignore
3131
struct Peripherals {

0 commit comments

Comments
 (0)