Skip to content

Commit

Permalink
Editing: Use Rustup where apropos
Browse files Browse the repository at this point in the history
  • Loading branch information
workingjubilee committed Apr 9, 2021
1 parent b132a85 commit b14177a
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 20 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# rustup: the Rust toolchain installer
# Rustup: the Rust toolchain installer

| Master CI | Build Status |
|--------------|----------------------------------------------------------|
| Windows | ![Windows builds][actions-windows-master] |
| macOS | ![maOS builds][actions-macos-master] |
| Linux Etc | ![Linux (etc) builds][actions-linux-master] |

*rustup* installs [The Rust Programming Language][rustlang] from the official
*Rustup* installs [The Rust Programming Language][rustlang] from the official
release channels, enabling you to easily switch between stable, beta,
and nightly compilers and keep them updated. It makes cross-compiling
simpler with binary builds of the standard library for common platforms.
Expand All @@ -16,16 +16,16 @@ And it runs on all platforms Rust supports, including Windows.

## Documentation

See [**The rustup book**](https://rust-lang.github.io/rustup/) for
documentation on installing and using rustup.
See [**The Rustup book**](https://rust-lang.github.io/rustup/) for
documentation on installing and using Rustup.

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md) for information on contributing to rustup.
See [CONTRIBUTING.md](CONTRIBUTING.md) for information on contributing to Rustup.

## License

Copyright Diggory Blake, the Mozilla Corporation, and rustup
Copyright Diggory Blake, the Mozilla Corporation, and Rustup
contributors.

Licensed under either of
Expand Down
15 changes: 7 additions & 8 deletions src/bin/rustup-init.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
//! The main rustup commandline application
//! The main Rustup command-line interface
//!
//! The rustup binary is a chimera, changing its behavior based on the
//! name of the binary. This is used most prominently to enable
//! rustup's tool 'proxies' - that is, rustup itself and the rustup
//! proxies are the same binary; when the binary is called 'rustup' or
//! 'rustup.exe' rustup behaves like the rustup commandline
//! application; when it is called 'rustc' it behaves as a proxy to
//! 'rustc'.
//! Rustup's tool 'proxies' - that is, rustup itself and the rustup
//! proxies are the same binary: when the binary is called 'rustup' or
//! 'rustup.exe' it offers the Rustup command-line interface, and
//! when it is called 'rustc' it behaves as a proxy to 'rustc'.
//!
//! This scheme is further used to distinguish the rustup installer,
//! called 'rustup-init' which is again just the rustup binary under a
//! This scheme is further used to distinguish the Rustup installer,
//! called 'rustup-init', which is again just the rustup binary under a
//! different name.
#![recursion_limit = "1024"]
Expand Down
4 changes: 2 additions & 2 deletions src/cli/help.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pub static RUSTUP_HELP: &str = r"DISCUSSION:
rustup installs The Rust Programming Language from the official
Rustup installs The Rust Programming Language from the official
release channels, enabling you to easily switch between stable,
beta, and nightly compilers and keep them updated. It makes
cross-compiling simpler with binary builds of the standard library
Expand Down Expand Up @@ -105,7 +105,7 @@ pub static TOOLCHAIN_LINK_HELP: &str = r"DISCUSSION:
toolchain 'latest-stage1' will be used.";

pub static OVERRIDE_HELP: &str = r"DISCUSSION:
Overrides configure rustup to use a specific toolchain when
Overrides configure Rustup to use a specific toolchain when
running in a specific directory.
Directories can be assigned their own Rust toolchain with `rustup
Expand Down
4 changes: 2 additions & 2 deletions src/cli/self_update/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
//!
//! Rustup addresses this by:
//! 1) using a shell script that updates PATH if the path is not in PATH
//! 2) sourcing this script in any known and appropriate rc file
//! 2) sourcing this script (`. /path/to/script`) in any appropriate rc file
use std::path::PathBuf;

Expand Down Expand Up @@ -82,7 +82,7 @@ pub trait UnixShell {
// heuristic should be used, assuming shells exist if any traces do.
fn does_exist(&self) -> bool;

// Gives all rcfiles of a given shell that rustup is concerned with.
// Gives all rcfiles of a given shell that Rustup is concerned with.
// Used primarily in checking rcfiles for cleanup.
fn rcfiles(&self) -> Vec<PathBuf>;

Expand Down
2 changes: 1 addition & 1 deletion src/cli/self_update/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ pub fn self_replace() -> Result<utils::ExitCode> {
// like when they are running.
//
// Here's what we're going to do:
// - Copy rustup to a temporary file in
// - Copy rustup.exe to a temporary file in
// CARGO_HOME/../rustup-gc-$random.exe.
// - Open the gc exe with the FILE_FLAG_DELETE_ON_CLOSE and
// FILE_SHARE_DELETE flags. This is going to be the last
Expand Down
2 changes: 1 addition & 1 deletion src/utils/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
///! Utility functions for rustup
///! Utility functions for Rustup
pub mod notifications;
pub mod raw;
pub mod toml_utils;
Expand Down

0 comments on commit b14177a

Please sign in to comment.