]> git.lizzy.rs Git - rust.git/commit - src/librustc_llvm/build.rs
Rollup merge of #76088 - hbina:add_example, r=LukasKalbertodt
authorTyler Mandry <tmandry@gmail.com>
Wed, 2 Sep 2020 01:24:27 +0000 (18:24 -0700)
committerGitHub <noreply@github.com>
Wed, 2 Sep 2020 01:24:27 +0000 (18:24 -0700)
commit7c1c7de85f47cd527d1935295e68218857d2d969
tree2fc022dd482d57f04c1bfd1660e87059c60789d1
parent5f28831a40477a0d564368e11fe6c5d6a26cd56f
parentcc3b2f9e1da2bb1bf2eda2e265687ed028cb0e22
Rollup merge of #76088 - hbina:add_example, r=LukasKalbertodt

Add more examples to lexicographic cmp on Iterators.

Given two arrays of T1 and T2, the most important rule of lexicographical comparison is that two arrays
of equal length will be compared until the first difference occured.

The examples provided only focuses on the second rule that says that the
shorter array will be filled with some T2 that is less than every T1.
Which is only possible because of the first rule.
library/core/src/iter/traits/iterator.rs