about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorNick Fitzgerald <fitzgen@gmail.com>2016-04-18 16:25:26 -0700
committerNick Fitzgerald <fitzgen@gmail.com>2016-04-22 10:21:12 -0700
commite078667b0581e7b77c5d1a9eb9b401392b39dbc7 (patch)
treed1eb50a4886bb15a5da4248dde429dd2107d35e4 /src/rustllvm/RustWrapper.cpp
parenta264f5b7e8df34c4bf7f10d0c6c7f9ab805ee672 (diff)
downloadrust-e078667b0581e7b77c5d1a9eb9b401392b39dbc7.tar.gz
rust-e078667b0581e7b77c5d1a9eb9b401392b39dbc7.zip
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/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions