mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
Use HintFmt for doc comments
This commit is contained in:
parent
6a125e65d0
commit
ce31a0457f
2 changed files with 6 additions and 6 deletions
|
@ -576,17 +576,17 @@ std::optional<EvalState::Doc> EvalState::getDoc(Value & v)
|
|||
}
|
||||
|
||||
if (name.empty()) {
|
||||
s << "Function ";
|
||||
s << HintFmt("Function ");
|
||||
}
|
||||
else {
|
||||
s << "Function `" << name << "`";
|
||||
s << HintFmt("Function '%s'", name);
|
||||
if (pos)
|
||||
s << "\\\n … " ;
|
||||
else
|
||||
s << "\\\n";
|
||||
}
|
||||
if (pos) {
|
||||
s << "defined at " << pos;
|
||||
s << HintFmt("defined at %1%", pos);
|
||||
}
|
||||
if (!docStr.empty()) {
|
||||
s << "\n\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue