mirror of
https://github.com/NixOS/nix
synced 2025-07-08 06:53:54 +02:00
Expr::show(): avoid emiting meaningless chars
This commit is contained in:
parent
896fad9119
commit
f8ccbb40d1
1 changed files with 2 additions and 2 deletions
|
@ -105,7 +105,7 @@ void ExprAttrs::show(std::ostream & str) const
|
|||
str << "{ ";
|
||||
for (auto & i : attrs)
|
||||
if (i.second.inherited)
|
||||
str << "inherit " << i.first << " " << "; ";
|
||||
str << "inherit " << i.first << "; ";
|
||||
else
|
||||
str << i.first << " = " << *i.second.e << "; ";
|
||||
for (auto & i : dynamicAttrs)
|
||||
|
@ -211,7 +211,7 @@ string showAttrPath(const AttrPath & attrPath)
|
|||
if (i.symbol.set())
|
||||
out << i.symbol;
|
||||
else
|
||||
out << "\"${" << *i.expr << "}\"";
|
||||
out << "${" << *i.expr << "}";
|
||||
}
|
||||
return out.str();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue