Skip to content

Commit 148b401

Browse files
thejpstereldruin
authored andcommitted
Fix example in README
1 parent 8685c25 commit 148b401

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ extern crate pc_keyboard;
2121
use pc_keyboard::{Keyboard, layouts, ScancodeSet2, HandleControl};
2222

2323
fn main() {
24-
let mut kb = pc_keyboard::Keyboard::new(layouts::Us104Key, ScancodeSet2, HandleControl::MapLettersToUnicode);
24+
let mut kb: Keyboard<layouts::Us104Key, ScancodeSet2> = Keyboard::new(HandleControl::MapLettersToUnicode);
2525
match kb.add_byte(0x20) {
2626
Ok(Some(event)) => {
2727
println!("Event {:?}", event);
@@ -42,6 +42,10 @@ fn main() {
4242

4343
This crate is guaranteed to compile on stable Rust 1.61 and up. It might compile with older versions but that may change in any new patch release.
4444

45+
## Changelog
46+
47+
There is a changelog in [CHANGELOG.md].
48+
4549
## License
4650

4751
Licensed under either of

0 commit comments

Comments
 (0)