Capitalize
This commit is contained in:
parent
8a5bbd9a4e
commit
a4279a07e2
2 changed files with 4 additions and 4 deletions
|
|
@ -112,10 +112,10 @@
|
|||
//!
|
||||
//! // next() is the only required method
|
||||
//! fn next(&mut self) -> Option<usize> {
|
||||
//! // increment our count. This is why we started at zero.
|
||||
//! // Increment our count. This is why we started at zero.
|
||||
//! self.count += 1;
|
||||
//!
|
||||
//! // check to see if we've finished counting or not.
|
||||
//! // Check to see if we've finished counting or not.
|
||||
//! if self.count < 6 {
|
||||
//! Some(self.count)
|
||||
//! } else {
|
||||
|
|
|
|||
|
|
@ -415,10 +415,10 @@ pub fn once<T>(value: T) -> Once<T> {
|
|||
/// ```
|
||||
/// #![feature(iter_unfold)]
|
||||
/// let counter = std::iter::unfold(0, |count| {
|
||||
/// // increment our count. This is why we started at zero.
|
||||
/// // Increment our count. This is why we started at zero.
|
||||
/// *count += 1;
|
||||
///
|
||||
/// // check to see if we've finished counting or not.
|
||||
/// // Check to see if we've finished counting or not.
|
||||
/// if *count < 6 {
|
||||
/// Some(*count)
|
||||
/// } else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue