Skip to content

Commit

Permalink
Update 08.12.md
Browse files Browse the repository at this point in the history
  • Loading branch information
icpd committed Mar 25, 2020
1 parent ed9b288 commit 100417e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eBook/chapter8/08.12.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func main() {
buffer.WriteTo(os.Stdout)
```
首先,创建一个新的`bytes.Buffer`变量,通过`buffer.Write()``fat.Fprintf()`写入数据。然后调用`buffer.WriteTo()`两次。
首先,创建一个新的`bytes.Buffer`变量,通过`buffer.Write()``fmt.Fprintf()`写入数据。然后调用`buffer.WriteTo()`两次。
第一次调用`buffer.WriteTo()`将打印`buffer`的内容。然而,第二次调用`buffer.WriteTo()`将不会有任何输出,因为在第一次调用后,`buffer`内容为空。
Expand Down

0 comments on commit 100417e

Please sign in to comment.