Skip to content

Commit

Permalink
Merge pull request hantmac#145 from whoisix/patch-2
Browse files Browse the repository at this point in the history
Update 08.12.md
  • Loading branch information
hantmac authored Mar 25, 2020
2 parents ed9b288 + 100417e commit 8cc81f9
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 8cc81f9

Please sign in to comment.