about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-03-23 08:42:48 -0500
committerGitHub <noreply@github.com>2017-03-23 08:42:48 -0500
commit08134cf861c952bb02120aedd5aaa3d1587b7600 (patch)
treef90f36c2aa8a9d389bdbada72919da9d9602fcd5 /src/rustllvm/PassWrapper.cpp
parent2233c6dbf14239fd38272ea32ce88ea4215b4f8d (diff)
parenta8800bb675397e6aa06ffdac46092d5d03e0cf69 (diff)
downloadrust-08134cf861c952bb02120aedd5aaa3d1587b7600.tar.gz
rust-08134cf861c952bb02120aedd5aaa3d1587b7600.zip
Rollup merge of #40715 - manuel-rhdt:patch-1, r=brson
Fix doc error for ExactSizeIterator

The code example in the trait documentation of ExactSizeIterator
has an incorrect implementation of the len method that does not return
the number of times the example iterator 'Counter' will iterate. This
may confuse readers of the docs as the example code will compile but
doesn't uphold the trait's contract.

This is easily fixed by modifying the implementation of len and changing
the assert statement to actually assert the correct behaviour. I also
slightly modified a code comment to better reflect what the method
returns.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions