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>
This commit is contained in:
Robin Stumm 2021-09-21 14:58:40 +02:00 committed by Raphael Megzari
parent 4ecb3e8795
commit 4ab63a8ca8

View File

@ -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;
};