docs(nix-compat/drvfmt): fix reference

Change-Id: Ic0403e028cc968bef4023ef78dbfa0d502da90b0
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10396
Reviewed-by: edef <edef@edef.eu>
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
This commit is contained in:
Florian Klink 2023-12-21 17:20:10 +02:00 committed by clbot
parent 8c83838c40
commit 1c3ea9d83d

View file

@ -7,8 +7,9 @@ use serde_json::json;
/// Some environment values can be non-valid UTF-8 strings.
/// `serde_json` prints them out really unreadable.
/// This is a tool to print A-Terms in a more readable fashion, so we brutally
/// use [BString::to_string] to get a UTF-8 string (replacing invalid characters
/// with the Unicode replacement codepoint).
/// use the [std::string::ToString] implementation of [bstr::BString] to get
/// a UTF-8 string (replacing invalid characters with the Unicode replacement
/// codepoint).
fn build_serde_json_value(drv: Derivation) -> serde_json::Value {
json!({
"args": drv.arguments,