about summary refs log tree commit diff
path: root/doc/languages-frameworks
diff options
context:
space:
mode:
authorDaniël de Kok <me@danieldk.eu>2021-06-01 13:14:28 +0200
committerDaniël de Kok <me@danieldk.eu>2021-06-01 13:14:28 +0200
commit9cca8ce4468487962ecd28f3ad8d937857636963 (patch)
tree379d5f11b6298249b6e56bf29bb3c50ba160c61b /doc/languages-frameworks
parent1c2986bbb806c57f9470bf3231d8da7250ab9091 (diff)
downloadnixlib-9cca8ce4468487962ecd28f3ad8d937857636963.tar
nixlib-9cca8ce4468487962ecd28f3ad8d937857636963.tar.gz
nixlib-9cca8ce4468487962ecd28f3ad8d937857636963.tar.bz2
nixlib-9cca8ce4468487962ecd28f3ad8d937857636963.tar.lz
nixlib-9cca8ce4468487962ecd28f3ad8d937857636963.tar.xz
nixlib-9cca8ce4468487962ecd28f3ad8d937857636963.tar.zst
nixlib-9cca8ce4468487962ecd28f3ad8d937857636963.zip
doc: fix incorrect use of cargoDeps
Thanks to @bjornfor for reporting this error!
Diffstat (limited to 'doc/languages-frameworks')
-rw-r--r--doc/languages-frameworks/rust.section.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/languages-frameworks/rust.section.md b/doc/languages-frameworks/rust.section.md
index 008909e5c76a..5ff7a5edefd5 100644
--- a/doc/languages-frameworks/rust.section.md
+++ b/doc/languages-frameworks/rust.section.md
@@ -373,7 +373,7 @@ hashes need to be specified since they are not available through the
 lock file. For example:
 
 ```
-cargoDeps = {
+cargoDeps = rustPlatform.importCargoLock {
   lockFile = ./Cargo.lock;
   outputHashes = {
     "rand-0.8.3" = "0ya2hia3cn31qa8894s3av2s8j5bjwb6yq92k0jsnlx7jid0jwqa";