diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2016-02-14 03:59:09 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2016-02-14 05:06:32 +0530 |
| commit | 3c845fe8694d39818a4f921cfada39bacfb91804 (patch) | |
| tree | 062d853388828a2a6969f2c48d6d284e841d3941 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | 6e446532e835ed3c934eec5a98bb795c0ffd4e50 (diff) | |
| parent | 8d5dcf9ce5425511720e77153aab665a7850f85a (diff) | |
| download | rust-3c845fe8694d39818a4f921cfada39bacfb91804.tar.gz rust-3c845fe8694d39818a4f921cfada39bacfb91804.zip | |
Rollup merge of #31535 - Ketsuban:more-detail-in-wrapping-shift-documentation, r=steveklabnik
`wrapping_shl` and `wrapping_shr` are easy to mistake for rotations, when in fact they work somewhat differently. The documentation currently available is a little sparse and easy to misinterpret, so I've added a warning to anyone who bumps into them that the equivalent rotate methods may actually be what they're looking for. If it's deemed useful to add a symmetrical mention to the documentation for the `rotate_left` and `rotate_right` methods, I can certainly have a go at that, but my gut feeling is that people likely to want a rotate will already know about the wrapping-arithmetic methods, for example from writing CPU simulators.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
