about summary refs log tree commit diff
path: root/src/libsyntax/errors
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-04-24 17:04:49 -0700
committerbors <bors@rust-lang.org>2016-04-24 17:04:49 -0700
commit645dd013ac6b334ab5bf7a7240c2243f4bb590c9 (patch)
treea77391952bddf1e7ab3e2eb5cc7947dc82fa9cbe /src/libsyntax/errors
parent19304837c86cc406ee042c99e12fa34debae4e8a (diff)
parente078667b0581e7b77c5d1a9eb9b401392b39dbc7 (diff)
downloadrust-645dd013ac6b334ab5bf7a7240c2243f4bb590c9.tar.gz
rust-645dd013ac6b334ab5bf7a7240c2243f4bb590c9.zip
Auto merge of #33085 - fitzgen:make-enumerate-example-more-clear, r=steveklabnik
Make the `Iterator::enumerate` doc example more clear

The example uses integers for the value being iterated over, but the indices
added by `enumerate` are also integers, so I always end up double taking and
thinking harder than I should when parsing the documentation. I also always
forget which order the index and value are in the tuple so I frequently hit this
stumbling block. This commit changes the documentation to iterate over
characters so that it is immediately obvious which part of the tuple is the
index and which is the value.
Diffstat (limited to 'src/libsyntax/errors')
0 files changed, 0 insertions, 0 deletions