From 4ab63a8ca8883b05d0895df59e26e5e62c4a9ff8 Mon Sep 17 00:00:00 2001
From: Robin Stumm <dermetfan@users.noreply.github.com>
Date: Tue, 21 Sep 2021 14:58:40 +0200
Subject: [PATCH] doc: rust: improve clarity of example snippet

Make it more clear that the return type is a string.

Co-authored-by: figsoda <figsoda@pm.me>
---
 doc/languages-frameworks/rust.section.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/languages-frameworks/rust.section.md b/doc/languages-frameworks/rust.section.md
index 09de57ff2bed..70d31f4eab42 100644
--- a/doc/languages-frameworks/rust.section.md
+++ b/doc/languages-frameworks/rust.section.md
@@ -142,7 +142,7 @@ rustPlatform.buildRustPackage rec {
   version = "1.0.0";
 
   cargoLock = let
-    fixupLockFile = path: /* ... */;
+    fixupLockFile = path: f (builtins.readFile path);
   in {
     lockFileContents = fixupLockFile ./Cargo.lock;
   };