Fixed typos in code comments

This commit is contained in:
Vincent Esche 2021-01-08 15:46:48 +01:00
parent 939ca83b34
commit 21f8239ac8
23 changed files with 42 additions and 42 deletions

View file

@ -79,7 +79,7 @@ impl Message for Response {}
fn read_json(inp: &mut impl BufRead) -> io::Result<Option<String>> {
let mut buf = String::new();
inp.read_line(&mut buf)?;
buf.pop(); // Remove traling '\n'
buf.pop(); // Remove trailing '\n'
Ok(match buf.len() {
0 => None,
_ => Some(buf),