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:
parent
4ecb3e8795
commit
4ab63a8ca8
|
@ -142,7 +142,7 @@ rustPlatform.buildRustPackage rec {
|
||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
|
|
||||||
cargoLock = let
|
cargoLock = let
|
||||||
fixupLockFile = path: /* ... */;
|
fixupLockFile = path: f (builtins.readFile path);
|
||||||
in {
|
in {
|
||||||
lockFileContents = fixupLockFile ./Cargo.lock;
|
lockFileContents = fixupLockFile ./Cargo.lock;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue