]> git.lizzy.rs Git - rust.git/commit
Correct invariant documentation for `steps_between`
authorDavid Thompson <dhwthompson@gmail.com>
Wed, 14 Jul 2021 20:48:18 +0000 (13:48 -0700)
committerDavid Thompson <dhwthompson@gmail.com>
Wed, 14 Jul 2021 20:48:18 +0000 (13:48 -0700)
commite753f305439c7c6cb7f485b6c52f930aefaa2a77
tree641136f12ce4beb544cff2f75a137169a6eab2df
parent4f0c568785adcc0a123cac9d47047020b7a24821
Correct invariant documentation for `steps_between`

Given that the previous example involves stepping forward from A to B,
the equivalent example on this line would make most sense as stepping
backward from B to A.
library/core/src/iter/range.rs