Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
  • Loading branch information
Ericson2314 and roberth committed Aug 11, 2023
1 parent 79cd647 commit e1c3f03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libexpr/primops.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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"`
Expand Down

0 comments on commit e1c3f03

Please sign in to comment.