Skip to content

Commit 63fc1fa

Browse files
author
lukaramu
committed
Revise documentation in core::ops::arith
Part of rust-lang#29365. * Replaced examples for Mul-/Div-/RemAssign with more illustrative ones * Made summary senteces for the trait methods use third person singular * Moved some explanations from Examples section to main explanation * Switched around argument order for the vector-scalar multiplication example such that the vector is on the left side (as it would be expected if one were to switch from `*` to `*=`) * Replaced mostly redundant example introductions with headings in traits with more than one example (where it made sense) * Cleaned up some examples to derive `PartialEq` instead of implementing it manually when that wasn't needed * Removed explicit `fn main()`s in examples where they weren't necessary * Rephrased some things * Added some missing periods * Fixed some formatting/punctuation in examples
1 parent 0188ec6 commit 63fc1fa

File tree

1 file changed

+118
-182
lines changed

1 file changed

+118
-182
lines changed

0 commit comments

Comments
 (0)