diff options
| author | Florian Gilcher <florian.gilcher@asquera.de> | 2020-03-06 10:37:23 +0100 |
|---|---|---|
| committer | Florian Gilcher <florian.gilcher@asquera.de> | 2020-03-10 18:11:36 +0100 |
| commit | 69aaed872cec119b1034c52151d00fb5308e7407 (patch) | |
| tree | 6ac81703f47f4965c2e44bf8b3fa1fc8a0e55bdd /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | 4a1b69d53aeb59a83de192ea67dbe4707b9a7b73 (diff) | |
| download | rust-69aaed872cec119b1034c52151d00fb5308e7407.tar.gz rust-69aaed872cec119b1034c52151d00fb5308e7407.zip | |
Make Point `Copy` in arithmetic documentation
Small composite types like `Point { x: i32, y: i32}` are plain
old data and we should encourage users to derive `Copy` on them.
This changes the semantics of the edited examples slightly: instead
of consuming the operands during addition, it will copy them. This
is desired behaviour.
Co-Authored-By: Jake Goulding <shepmaster@mac.com>
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
