about summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorRobin Stumm <serverkorken@gmail.com>2021-09-22 12:20:24 +0200
committerRaphael Megzari <raphael@megzari.com>2021-09-22 20:32:19 +0900
commit4771684208a6beed8293baabfdaac103552614e7 (patch)
treedb8c8a2a82610b12b222804252712a2202f3a19f /doc
parent4ab63a8ca8883b05d0895df59e26e5e62c4a9ff8 (diff)
downloadnixlib-4771684208a6beed8293baabfdaac103552614e7.tar
nixlib-4771684208a6beed8293baabfdaac103552614e7.tar.gz
nixlib-4771684208a6beed8293baabfdaac103552614e7.tar.bz2
nixlib-4771684208a6beed8293baabfdaac103552614e7.tar.lz
nixlib-4771684208a6beed8293baabfdaac103552614e7.tar.xz
nixlib-4771684208a6beed8293baabfdaac103552614e7.tar.zst
nixlib-4771684208a6beed8293baabfdaac103552614e7.zip
doc: rust: simplify snippet
Do not use recursive attribute sets where not needed, it could confuse the reader.
Diffstat (limited to 'doc')
-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 70d31f4eab42..cb14a7726e42 100644
--- a/doc/languages-frameworks/rust.section.md
+++ b/doc/languages-frameworks/rust.section.md
@@ -116,7 +116,7 @@ is updated after every change to `Cargo.lock`. Therefore,
 a `Cargo.lock` file using the `cargoLock` argument. For example:
 
 ```nix
-rustPlatform.buildRustPackage rec {
+rustPlatform.buildRustPackage {
   pname = "myproject";
   version = "1.0.0";
 
@@ -137,7 +137,7 @@ preprocess or generate the file as part of your build:
 
 
 ```nix
-rustPlatform.buildRustPackage rec {
+rustPlatform.buildRustPackage {
   pname = "myproject";
   version = "1.0.0";