diff options
| author | Taylor Yu <tlyu@mit.edu> | 2021-06-24 12:33:51 -0500 |
|---|---|---|
| committer | Taylor Yu <tlyu@mit.edu> | 2021-06-24 12:33:51 -0500 |
| commit | c196cc9f125b1a121cc2a636b21143a2bb0b7cdf (patch) | |
| tree | 9f61a4183a6b2bbf1b0422fb6165c15a34e4ef25 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | 771f35ce84477595e43bce2f262778c841d36963 (diff) | |
| download | rust-c196cc9f125b1a121cc2a636b21143a2bb0b7cdf.tar.gz rust-c196cc9f125b1a121cc2a636b21143a2bb0b7cdf.zip | |
option/result overviews: address feedback
(Most of these are from a review by joshtriplett. Thanks!) Fix errors in `as_pin_ref` and `as_pin_mut` in the "Adapters for working with references" overview. Reword some headings about transformation methods. Reclassify `map`, `map_or`, `map_or_else`, `map_err`, etc. to more accurately reflect which variants they transform. Document `Debug` requirement for `get_or_insert_default`. Reword text about `take` and `replace` to be more accurate. Add examples for the `Product` and `Sum` traits. Also: Move link reference definitions closer to their uses. Warn about making link reference definintions for `err` and `ok`. Avoid making other link reference definitions that might conflict in the future (foreign methods that share a name with local ones, etc.) Write out the generics of `Option` and `Result` when the following text refers to the type parameters.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
