From e1c3f03499b55011a45ba2382e400171473cd07a Mon Sep 17 00:00:00 2001 From: John Ericson Date: Fri, 11 Aug 2023 11:47:06 -0400 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Robert Hensing --- src/libexpr/primops.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index b39197c1392..57ae40f9abc 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -1843,7 +1843,7 @@ static void prim_outputOf(EvalState & state, const PosIdx pos, Value * * args, V { SingleDerivedPath drvPath = state.coerceToSingleDerivedPath(pos, *args[0], "while evaluating the first argument to builtins.outputOf"); - std::string_view outputName = state.forceStringNoCtx(*args[1], pos, "while evaluating teh second argument to builtins.outputOf"); + std::string_view outputName = state.forceStringNoCtx(*args[1], pos, "while evaluating the second argument to builtins.outputOf"); state.mkSingleDerivedPathString( SingleDerivedPath::Built { @@ -1857,7 +1857,7 @@ static RegisterPrimOp primop_outputOf({ .name = "__outputOf", .args = {"drv path", "output name"}, .doc = R"( - Return path (actually placeholder path) to the output of the given drv. + Return the output path of a derivation, in the form of a placeholder. The drv path may itself be a placeholder, which permits chaining this primop. For instance, `builtins.outputOf (builtins.outputOf myDrv "out) "out"`