about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-05-09 00:58:22 +0200
committerGitHub <noreply@github.com>2019-05-09 00:58:22 +0200
commit229fff3d0380635e54bc7ebafc4a4123272826f8 (patch)
treec9c80347c855bbb30b8dc04b18612c57147d51b3 /src/libstd/sys/unix/stack_overflow.rs
parent3f5152e200c0c02dfe0f79367948c98053d35855 (diff)
parent764e3668b05eeee92e8d81ac748cbb1c76de1a44 (diff)
downloadrust-229fff3d0380635e54bc7ebafc4a4123272826f8.tar.gz
rust-229fff3d0380635e54bc7ebafc4a4123272826f8.zip
Rollup merge of #59979 - stepancheg:num-size, r=ehuss
to_xe_bytes for isize and usize returns an array of different size

... on different platforms.

Official rustdoc of
[`usize::to_le_bytes`](https://doc.rust-lang.org/std/primitive.usize.html#method.to_le_bytes)
displays signature

```
pub fn to_ne_bytes(self) -> [u8; 8]
```

which might be misleading: this function returns 4 bytes on 32-bit
systems.

With this commit applied rustdoc for `isize` and `usize` is this:
<img width="740" alt="2019-04-15_0020" src="https://user-images.githubusercontent.com/28969/56100765-9f69b380-5f14-11e9-974c-daa25edaa881.png">
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions