Skip to content

Commit

Permalink
doc: rust: simplify snippet
Browse files Browse the repository at this point in the history
Do not use recursive attribute sets where not needed, it could confuse the reader.
  • Loading branch information
dermetfan authored and happysalada committed Sep 22, 2021
1 parent 4ab63a8 commit 4771684
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/languages-frameworks/rust.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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";
Expand Down

0 comments on commit 4771684

Please sign in to comment.