Update 'README.md'

changed wording.
This commit is contained in:
Thelie 2022-03-27 15:20:54 +02:00
parent e4b19cba5d
commit df8e5f3e27

View file

@ -16,7 +16,7 @@ It does this by providing two macros:
- `sing_add_trait`, which acts as an attribute to a trait implementation and gathers the method signatures that are used by `sing_loop!`. - `sing_add_trait`, which acts as an attribute to a trait implementation and gathers the method signatures that are used by `sing_loop!`.
- `sing_loop!`, which takes a trait object and serialization/deserialization functions as well as some optional parameters. It generates a loop parsing function calls coming from STDIN (or any other `BufRead` stream), evaluating them by calling the appropriate method on the object and returning them on STDOUT (or any other `Write` stream). - `sing_loop!`, which takes a trait object and serialization/deserialization functions as well as some optional parameters. It generates a loop parsing function calls coming from STDIN (or any other `BufRead` stream), evaluating them by calling the appropriate method on the object and returning them on STDOUT (or any other `Write` stream).
## Example usage ## Usage example
```rust ```rust
use serde::{Serialize, Deserialize}; use serde::{Serialize, Deserialize};