diff options
author | Eli Flanagan <eli@typedspace.com> | 2021-11-04 09:21:43 -0400 |
---|---|---|
committer | Raphael Megzari <raphael@megzari.com> | 2021-11-05 00:17:56 +0900 |
commit | 326cfefd68c6841c762fb77035e94e97d6e68d9d (patch) | |
tree | c70a005df6062f8ab63f66f7256a1436ca540fed /doc | |
parent | b829fe48e36b326d8bcefda14475c2420a52e537 (diff) |
Apply suggestions from code review
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/languages-frameworks/rust.section.md | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/languages-frameworks/rust.section.md b/doc/languages-frameworks/rust.section.md index d1136346fcb7d..9962e7520bf55 100644 --- a/doc/languages-frameworks/rust.section.md +++ b/doc/languages-frameworks/rust.section.md @@ -917,8 +917,7 @@ As of writing, this prints out `rustc 1.56.0 (09c42c458 2021-10-18)`. You can also use an overlay's Rust toolchain with `buildRustPackage`. The below snippet demonstrates invoking `buildRustPackage` with an oxalica overlay selected Rust toolchain: ```nix -with import <nixpkgs> -{ +with import <nixpkgs> { overlays = [ (import (fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz")) ]; @@ -933,7 +932,7 @@ rustPlatform.buildRustPackage rec { src = fetchFromGitHub { owner = "BurntSushi"; - repo = pname; + repo = "ripgrep"; rev = version; sha256 = "1hqps7l5qrjh9f914r5i6kmcz6f1yb951nv4lby0cjnp5l253kps"; }; |