Commit c309089
authored
Rollup merge of rust-lang#136710 - JakenHerman:jaken/iterator-docs, r=workingjubilee
Document `Sum::sum` returns additive identities for `[]`
Because the neutral element of `<fNN as iter::Sum>` was changed to `neg_zero`, the documentation needed to be updated, as it was reporting inadequate information about what should be expected from the return.
Relevant Commit: rust-lang@4908188
Relevant Pull Request: rust-lang#129321
---
The referenced commit causes unintended side effects on presentation layer applications like using Tera templates, for example. I'm not sure what the motivation was behind the original change, but it seems like more discussion should be put into this issue and potentially have that change reverted.1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3493 | 3493 | | |
3494 | 3494 | | |
3495 | 3495 | | |
3496 | | - | |
| 3496 | + | |
| 3497 | + | |
3497 | 3498 | | |
3498 | 3499 | | |
3499 | 3500 | | |
| |||
3511 | 3512 | | |
3512 | 3513 | | |
3513 | 3514 | | |
| 3515 | + | |
| 3516 | + | |
| 3517 | + | |
| 3518 | + | |
3514 | 3519 | | |
3515 | 3520 | | |
3516 | 3521 | | |
| |||
0 commit comments