Skip to content

Commit 65ce31e

Browse files
committed
Auto merge of #58 - cldershem:patch-7, r=japaric
Requires mutable references. The borrow checker would like mutable references. Closes #57.
2 parents 06a73b2 + f521aa6 commit 65ce31e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/17-async-io-the-future/my-solution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
``` rust
44
pub fn main() -> ! {
55
let mut timer = Timer::new().unwrap();
6-
let Serial { tx, rx } = Serial::new().unwrap();
6+
let Serial { mut tx, mut rx } = Serial::new().unwrap();
77

88
let mut periodic = timer.periodic(100);
99
let mut bytes = rx.bytes();

0 commit comments

Comments
 (0)