Skip to content

fix typo #581

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion iterator/iterator.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Rust支持通过省略高位的形式生成一个无限长度的自增序列,
let inf_seq = (1..).into_iter();
```

不过不用担心这个无限增长的序列撑爆你的内存,占用你的CPU,因为适配器的惰性的特性,它本身是安全的,除非你对这个序列进行`collect`或者`fold`!
不过不用担心这个无限增长的序列撑爆你的内存,占用你的CPU,因为迭代器是惰性的,它本身是安全的,除非你对这个序列进行`collect`或者`fold`!
不过,我想聪明如你,不会犯这种错误吧!
因此,想要应用这个,你需要用`take`或者`take_while`来截断他,必须? 除非你将它当作一个生成器。当然了,那就是另外一个故事了。

Expand Down