From 342a7a299df6b487f0fc846e33e1e0973ed9e020 Mon Sep 17 00:00:00 2001 From: kumakichi Date: Wed, 3 Feb 2021 18:21:53 +0800 Subject: [PATCH] minor fix --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8c03b6b..c072b7a 100644 --- a/README.md +++ b/README.md @@ -13457,7 +13457,7 @@ fn main() { Here is what an output output looks like: -```rust +```text Please type something, or x to escape: something You wrote something @@ -13477,7 +13477,7 @@ You wrote x It takes our input and gives it back, and it even knows that we typed `x`. But it doesn't exit the program. The only way to get out is to close the window, or type ctrl and c. Let's change the `{}` to `{:?}` in `println!` to get more information (or you could use `dbg!(&input_string)` if you like that macro). Now it says: -```rust +```text Please type something, or x to escape: something You wrote "something\r\n" @@ -13509,7 +13509,7 @@ U+2029 (paragraph separator) So that will turn `x\r\n` into just `x`. Now it works: -``` +```rust use std::io; fn main() {