Skip to content

Commit

Permalink
docs: Update README (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
rezigned authored Sep 30, 2023
1 parent 422378c commit d109777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ ctrl-c = "Quit"
Then in your terminal library of choice (we'll be using [crossterm](https://github.com/crossterm-rs/crossterm) here). You can use any deserializer (e.g. `toml`, `json`, etc.) to deserialize a key from the configuration above into the terminal library's event (e.g. `crossterm::event::KeyEvent`).

```rust
let mapping: Config = toml::from_str(CONFIG).unwrap();
let config: Config = toml::from_str(CONFIG).unwrap();

// Read input event
match read()? {
Expand Down

0 comments on commit d109777

Please sign in to comment.