Skip to content

Commit 453b1dc

Browse files
committed
Rust is a proper name: rust → Rust
1 parent b77e018 commit 453b1dc

File tree

12 files changed

+22
-22
lines changed

12 files changed

+22
-22
lines changed

library/alloc/src/raw_vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ impl<T, A: Allocator> RawVec<T, A> {
259259
} else {
260260
// We could use Layout::array here which ensures the absence of isize and usize overflows
261261
// and could hypothetically handle differences between stride and size, but this memory
262-
// has already been allocated so we know it can't overflow and currently rust does not
262+
// has already been allocated so we know it can't overflow and currently Rust does not
263263
// support such types. So we can do better by skipping some checks and avoid an unwrap.
264264
const { assert!(mem::size_of::<T>() % mem::align_of::<T>() == 0) };
265265
unsafe {

library/core/src/arch.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ pub use crate::core_arch::arch::*;
66

77
/// Inline assembly.
88
///
9-
/// Refer to [rust by example] for a usage guide and the [reference] for
9+
/// Refer to [Rust By Example] for a usage guide and the [reference] for
1010
/// detailed information about the syntax and available options.
1111
///
12-
/// [rust by example]: https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html
12+
/// [Rust By Example]: https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html
1313
/// [reference]: https://doc.rust-lang.org/nightly/reference/inline-assembly.html
1414
#[stable(feature = "asm", since = "1.59.0")]
1515
#[rustc_builtin_macro]
@@ -19,10 +19,10 @@ pub macro asm("assembly template", $(operands,)* $(options($(option),*))?) {
1919

2020
/// Module-level inline assembly.
2121
///
22-
/// Refer to [rust by example] for a usage guide and the [reference] for
22+
/// Refer to [Rust By Example] for a usage guide and the [reference] for
2323
/// detailed information about the syntax and available options.
2424
///
25-
/// [rust by example]: https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html
25+
/// [Rust By Example]: https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html
2626
/// [reference]: https://doc.rust-lang.org/nightly/reference/inline-assembly.html
2727
#[stable(feature = "global_asm", since = "1.59.0")]
2828
#[rustc_builtin_macro]

library/core/src/macros/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1481,7 +1481,7 @@ pub(crate) mod builtin {
14811481
/// script](https://doc.rust-lang.org/cargo/reference/build-scripts.html#outputs-of-the-build-script).
14821482
///
14831483
/// When using the `include` macro to include stretches of documentation, remember that the
1484-
/// included file still needs to be a valid rust syntax. It is also possible to
1484+
/// included file still needs to be a valid Rust syntax. It is also possible to
14851485
/// use the [`include_str`] macro as `#![doc = include_str!("...")]` (at the module level) or
14861486
/// `#[doc = include_str!("...")]` (at the item level) to include documentation from a plain
14871487
/// text or markdown file.

library/core/src/ptr/alignment.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use crate::num::NonZero;
33
use crate::{cmp, fmt, hash, mem, num};
44

55
/// A type storing a `usize` which is a power of two, and thus
6-
/// represents a possible alignment in the rust abstract machine.
6+
/// represents a possible alignment in the Rust abstract machine.
77
///
88
/// Note that particularly large alignments, while representable in this type,
99
/// are likely not to be supported by actual allocators and linkers.

library/core/src/slice/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use crate::slice;
2323
issue = "none",
2424
reason = "exposed from core to be reused in std; use the memchr crate"
2525
)]
26-
/// Pure rust memchr implementation, taken from rust-memchr
26+
/// Pure Rust memchr implementation, taken from rust-memchr
2727
pub mod memchr;
2828

2929
#[unstable(

library/core/src/sync/exclusive.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use core::task::{Context, Poll};
1919
///
2020
/// Certain constructs like [`Future`]s can only be used with _exclusive_ access,
2121
/// and are often `Send` but not `Sync`, so `Exclusive` can be used as hint to the
22-
/// rust compiler that something is `Sync` in practice.
22+
/// Rust compiler that something is `Sync` in practice.
2323
///
2424
/// ## Examples
2525
/// Using a non-`Sync` future prevents the wrapping struct from being `Sync`

library/std/src/ffi/os_str.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ impl OsString {
157157
/// # Safety
158158
///
159159
/// As the encoding is unspecified, callers must pass in bytes that originated as a mixture of
160-
/// validated UTF-8 and bytes from [`OsStr::as_encoded_bytes`] from within the same rust version
160+
/// validated UTF-8 and bytes from [`OsStr::as_encoded_bytes`] from within the same Rust version
161161
/// built for the same target platform. For example, reconstructing an `OsString` from bytes sent
162162
/// over the network or stored in a file will likely violate these safety rules.
163163
///
@@ -213,7 +213,7 @@ impl OsString {
213213
/// ASCII.
214214
///
215215
/// Note: As the encoding is unspecified, any sub-slice of bytes that is not valid UTF-8 should
216-
/// be treated as opaque and only comparable within the same rust version built for the same
216+
/// be treated as opaque and only comparable within the same Rust version built for the same
217217
/// target platform. For example, sending the bytes over the network or storing it in a file
218218
/// will likely result in incompatible data. See [`OsString`] for more encoding details
219219
/// and [`std::ffi`] for platform-specific, specified conversions.
@@ -747,7 +747,7 @@ impl OsStr {
747747
/// # Safety
748748
///
749749
/// As the encoding is unspecified, callers must pass in bytes that originated as a mixture of
750-
/// validated UTF-8 and bytes from [`OsStr::as_encoded_bytes`] from within the same rust version
750+
/// validated UTF-8 and bytes from [`OsStr::as_encoded_bytes`] from within the same Rust version
751751
/// built for the same target platform. For example, reconstructing an `OsStr` from bytes sent
752752
/// over the network or stored in a file will likely violate these safety rules.
753753
///
@@ -955,7 +955,7 @@ impl OsStr {
955955
/// ASCII.
956956
///
957957
/// Note: As the encoding is unspecified, any sub-slice of bytes that is not valid UTF-8 should
958-
/// be treated as opaque and only comparable within the same rust version built for the same
958+
/// be treated as opaque and only comparable within the same Rust version built for the same
959959
/// target platform. For example, sending the slice over the network or storing it in a file
960960
/// will likely result in incompatible byte slices. See [`OsString`] for more encoding details
961961
/// and [`std::ffi`] for platform-specific, specified conversions.

library/std/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
//!
8585
//! # Contributing changes to the documentation
8686
//!
87-
//! Check out the rust contribution guidelines [here](
87+
//! Check out the Rust contribution guidelines [here](
8888
//! https://rustc-dev-guide.rust-lang.org/contributing.html#writing-documentation).
8989
//! The source for this documentation can be found on
9090
//! [GitHub](https://github.com/rust-lang/rust).

library/std/src/sys/pal/hermit/time.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ impl Sub<Instant> for Instant {
179179
///
180180
/// # Panics
181181
///
182-
/// Previous rust versions panicked when `other` was later than `self`. Currently this
182+
/// Previous Rust versions panicked when `other` was later than `self`. Currently this
183183
/// method saturates. Future versions may reintroduce the panic in some circumstances.
184184
/// See [Monotonicity].
185185
///

library/std/src/time.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub use core::time::TryFromFloatSecsError;
5959
/// experience time dilation (slow down or speed up), but it will never go
6060
/// backwards.
6161
/// As part of this non-guarantee it is also not specified whether system suspends count as
62-
/// elapsed time or not. The behavior varies across platforms and rust versions.
62+
/// elapsed time or not. The behavior varies across platforms and Rust versions.
6363
///
6464
/// Instants are opaque types that can only be compared to one another. There is
6565
/// no method to get "the number of seconds" from an instant. Instead, it only
@@ -142,7 +142,7 @@ pub use core::time::TryFromFloatSecsError;
142142
/// where monotonicity is violated, or `Instant`s are subtracted in the wrong order.
143143
///
144144
/// This workaround obscures programming errors where earlier and later instants are accidentally
145-
/// swapped. For this reason future rust versions may reintroduce panics.
145+
/// swapped. For this reason future Rust versions may reintroduce panics.
146146
///
147147
/// [tier 1]: https://doc.rust-lang.org/rustc/platform-support.html
148148
/// [`duration_since`]: Instant::duration_since
@@ -290,7 +290,7 @@ impl Instant {
290290
///
291291
/// # Panics
292292
///
293-
/// Previous rust versions panicked when `earlier` was later than `self`. Currently this
293+
/// Previous Rust versions panicked when `earlier` was later than `self`. Currently this
294294
/// method saturates. Future versions may reintroduce the panic in some circumstances.
295295
/// See [Monotonicity].
296296
///
@@ -365,7 +365,7 @@ impl Instant {
365365
///
366366
/// # Panics
367367
///
368-
/// Previous rust versions panicked when the current time was earlier than self. Currently this
368+
/// Previous Rust versions panicked when the current time was earlier than self. Currently this
369369
/// method returns a Duration of zero in that case. Future versions may reintroduce the panic.
370370
/// See [Monotonicity].
371371
///
@@ -450,7 +450,7 @@ impl Sub<Instant> for Instant {
450450
///
451451
/// # Panics
452452
///
453-
/// Previous rust versions panicked when `other` was later than `self`. Currently this
453+
/// Previous Rust versions panicked when `other` was later than `self`. Currently this
454454
/// method saturates. Future versions may reintroduce the panic in some circumstances.
455455
/// See [Monotonicity].
456456
///

library/test/src/formatters/terse.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl<T: Write> TerseFormatter<T> {
6868
if self.test_count % QUIET_MODE_MAX_COLUMN == QUIET_MODE_MAX_COLUMN - 1 {
6969
// We insert a new line regularly in order to flush the
7070
// screen when dealing with line-buffered output (e.g., piping to
71-
// `stamp` in the rust CI).
71+
// `stamp` in the Rust CI).
7272
let out = format!(" {}/{}\n", self.test_count + 1, self.total_test_count);
7373
self.write_plain(out)?;
7474
}

library/test/src/types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub use NamePadding::*;
1313
pub use TestFn::*;
1414
pub use TestName::*;
1515

16-
/// Type of the test according to the [rust book](https://doc.rust-lang.org/cargo/guide/tests.html)
16+
/// Type of the test according to the [Rust book](https://doc.rust-lang.org/cargo/guide/tests.html)
1717
/// conventions.
1818
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
1919
pub enum TestType {

0 commit comments

Comments
 (0)