From b8cb9b7d72c7d4fdd50b095a36c69962c9749766 Mon Sep 17 00:00:00 2001 From: Nango Date: Sat, 11 Jul 2020 00:10:14 -0500 Subject: [PATCH] Update ch12-06-writing-to-stderr-instead-of-stdout.md --- src/ch12-06-writing-to-stderr-instead-of-stdout.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ch12-06-writing-to-stderr-instead-of-stdout.md b/src/ch12-06-writing-to-stderr-instead-of-stdout.md index 1a289a5..322fe36 100644 --- a/src/ch12-06-writing-to-stderr-instead-of-stdout.md +++ b/src/ch12-06-writing-to-stderr-instead-of-stdout.md @@ -1,4 +1,4 @@ -## 将错误信息输出到标准错误而不是标准输出 +## 将错误信息输出到标准错误而不是标准输出 > [ch12-06-writing-to-stderr-instead-of-stdout.md](https://github.com/rust-lang/book/blob/master/src/ch12-06-writing-to-stderr-instead-of-stdout.md) >
@@ -26,7 +26,7 @@ $ cargo run > output.txt Problem parsing arguments: not enough arguments ``` -是的,错误信息被打印到了标准输出中。像这样的错误信息被打印到标准错误中将会有用的多,并且只将成功运行的信息写入文件。接下来我们将对程序进行修改从而以这种方式进行输出。 +是的,错误信息被打印到了标准输出中。像这样的错误信息被打印到标准错误中将会有用得多,将使得只有成功运行所产生的输出才会写入文件。我们接下来就修改。 ### 将错误打印到标准错误