Skip to content

Commit 6d09e29

Browse files
authored
Rollup merge of #75530 - nixphix:docs/os-raw, r=jyn514
Switch to intra-doc links in os/raw/*.md Partial fix for #75080 @rustbot modify labels: T-doc, A-intra-doc-links, T-rustdoc r? @jyn514
2 parents 2564135 + 84539eb commit 6d09e29

File tree

13 files changed

+13
-33
lines changed

13 files changed

+13
-33
lines changed

library/std/src/os/raw/char.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,5 @@ Equivalent to C's `char` type.
55
C chars are most commonly used to make C strings. Unlike Rust, where the length of a string is included alongside the string, C strings mark the end of a string with the character `'\0'`. See [`CStr`] for more information.
66

77
[C's `char` type]: https://en.wikipedia.org/wiki/C_data_types#Basic_types
8-
[Rust's `char` type]: ../../primitive.char.html
9-
[`CStr`]: ../../ffi/struct.CStr.html
10-
[`i8`]: ../../primitive.i8.html
11-
[`u8`]: ../../primitive.u8.html
8+
[Rust's `char` type]: char
9+
[`CStr`]: crate::ffi::CStr

library/std/src/os/raw/double.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ Equivalent to C's `double` type.
33
This type will almost always be [`f64`], which is guaranteed to be an [IEEE-754 double-precision float] in Rust. That said, the standard technically only guarantees that it be a floating-point number with at least the precision of a [`float`], and it may be `f32` or something entirely different from the IEEE-754 standard.
44

55
[IEEE-754 double-precision float]: https://en.wikipedia.org/wiki/IEEE_754
6-
[`float`]: type.c_float.html
7-
[`f64`]: ../../primitive.f64.html
6+
[`float`]: c_float

library/std/src/os/raw/float.md

-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ Equivalent to C's `float` type.
33
This type will almost always be [`f32`], which is guaranteed to be an [IEEE-754 single-precision float] in Rust. That said, the standard technically only guarantees that it be a floating-point number, and it may have less precision than `f32` or not follow the IEEE-754 standard at all.
44

55
[IEEE-754 single-precision float]: https://en.wikipedia.org/wiki/IEEE_754
6-
[`f32`]: ../../primitive.f32.html

library/std/src/os/raw/int.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@ Equivalent to C's `signed int` (`int`) type.
22

33
This type will almost always be [`i32`], but may differ on some esoteric systems. The C standard technically only requires that this type be a signed integer that is at least the size of a [`short`]; some systems define it as an [`i16`], for example.
44

5-
[`short`]: type.c_short.html
6-
[`i32`]: ../../primitive.i32.html
7-
[`i16`]: ../../primitive.i16.html
5+
[`short`]: c_short

library/std/src/os/raw/long.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@ Equivalent to C's `signed long` (`long`) type.
22

33
This type will always be [`i32`] or [`i64`]. Most notably, many Linux-based systems assume an `i64`, but Windows assumes `i32`. The C standard technically only requires that this type be a signed integer that is at least 32 bits and at least the size of an [`int`], although in practice, no system would have a `long` that is neither an `i32` nor `i64`.
44

5-
[`int`]: type.c_int.html
6-
[`i32`]: ../../primitive.i32.html
7-
[`i64`]: ../../primitive.i64.html
5+
[`int`]: c_int

library/std/src/os/raw/longlong.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@ Equivalent to C's `signed long long` (`long long`) type.
22

33
This type will almost always be [`i64`], but may differ on some systems. The C standard technically only requires that this type be a signed integer that is at least 64 bits and at least the size of a [`long`], although in practice, no system would have a `long long` that is not an `i64`, as most systems do not have a standardised [`i128`] type.
44

5-
[`long`]: type.c_int.html
6-
[`i64`]: ../../primitive.i64.html
7-
[`i128`]: ../../primitive.i128.html
5+
[`long`]: c_int

library/std/src/os/raw/schar.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ Equivalent to C's `signed char` type.
22

33
This type will always be [`i8`], but is included for completeness. It is defined as being a signed integer the same size as a C [`char`].
44

5-
[`char`]: type.c_char.html
6-
[`i8`]: ../../primitive.i8.html
5+
[`char`]: c_char

library/std/src/os/raw/short.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ Equivalent to C's `signed short` (`short`) type.
22

33
This type will almost always be [`i16`], but may differ on some esoteric systems. The C standard technically only requires that this type be a signed integer with at least 16 bits; some systems may define it as `i32`, for example.
44

5-
[`char`]: type.c_char.html
6-
[`i16`]: ../../primitive.i16.html
5+
[`char`]: c_char

library/std/src/os/raw/uchar.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ Equivalent to C's `unsigned char` type.
22

33
This type will always be [`u8`], but is included for completeness. It is defined as being an unsigned integer the same size as a C [`char`].
44

5-
[`char`]: type.c_char.html
6-
[`u8`]: ../../primitive.u8.html
5+
[`char`]: c_char

library/std/src/os/raw/uint.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@ Equivalent to C's `unsigned int` type.
22

33
This type will almost always be [`u32`], but may differ on some esoteric systems. The C standard technically only requires that this type be an unsigned integer with the same size as an [`int`]; some systems define it as a [`u16`], for example.
44

5-
[`int`]: type.c_int.html
6-
[`u32`]: ../../primitive.u32.html
7-
[`u16`]: ../../primitive.u16.html
5+
[`int`]: c_int

library/std/src/os/raw/ulong.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@ Equivalent to C's `unsigned long` type.
22

33
This type will always be [`u32`] or [`u64`]. Most notably, many Linux-based systems assume an `u64`, but Windows assumes `u32`. The C standard technically only requires that this type be an unsigned integer with the size of a [`long`], although in practice, no system would have a `ulong` that is neither a `u32` nor `u64`.
44

5-
[`long`]: type.c_long.html
6-
[`u32`]: ../../primitive.u32.html
7-
[`u64`]: ../../primitive.u64.html
5+
[`long`]: c_long

library/std/src/os/raw/ulonglong.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@ Equivalent to C's `unsigned long long` type.
22

33
This type will almost always be [`u64`], but may differ on some systems. The C standard technically only requires that this type be an unsigned integer with the size of a [`long long`], although in practice, no system would have a `long long` that is not a `u64`, as most systems do not have a standardised [`u128`] type.
44

5-
[`long long`]: type.c_longlong.html
6-
[`u64`]: ../../primitive.u64.html
7-
[`u128`]: ../../primitive.u128.html
5+
[`long long`]: c_longlong

library/std/src/os/raw/ushort.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ Equivalent to C's `unsigned short` type.
22

33
This type will almost always be [`u16`], but may differ on some esoteric systems. The C standard technically only requires that this type be an unsigned integer with the same size as a [`short`].
44

5-
[`short`]: type.c_short.html
6-
[`u16`]: ../../primitive.u16.html
5+
[`short`]: c_short

0 commit comments

Comments
 (0)