about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeon <99900077+leon-erd@users.noreply.github.com>2024-03-05 00:44:39 +0100
committerGitHub <noreply@github.com>2024-03-04 15:44:39 -0800
commit0bb74f147bd0adaef1b69964c451c7a1f497098f (patch)
tree83d06e6f12b16b3921f6a404dec2183e5dc9e0ff
parentaa4c6bcd6c828443272f94820a0ed0bc279e3a8e (diff)
doc: small fix for nightly in derivation snippet (#292688)
-rw-r--r--doc/languages-frameworks/rust.section.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/languages-frameworks/rust.section.md b/doc/languages-frameworks/rust.section.md
index 76ac7b6cb2d2d..4ba556c69d5ab 100644
--- a/doc/languages-frameworks/rust.section.md
+++ b/doc/languages-frameworks/rust.section.md
@@ -903,8 +903,8 @@ with import <nixpkgs>
 };
 let
   rustPlatform = makeRustPlatform {
-    cargo = rust-bin.stable.latest.minimal;
-    rustc = rust-bin.stable.latest.minimal;
+    cargo = rust-bin.selectLatestNightlyWith (toolchain: toolchain.default);
+    rustc = rust-bin.selectLatestNightlyWith (toolchain: toolchain.default);
   };
 in