docs(natu): clarify let-order locations

This commit is contained in:
2026-09-26 23:17:11 -04:00
parent 86de704fbb
commit 832bfe589c
2 changed files with 3 additions and 3 deletions

View File

@@ -56,7 +56,7 @@ impl std::fmt::Display for Report {
finding.finding.expected_order.as_ref().expect("let order");
writeln!(
formatter,
" bindings starting at line {start}: {}",
" let whose first binding starts at line {start}: {}",
expected_order.join(", ")
)?;
}

View File

@@ -58,8 +58,8 @@ fn natu_reports_out_of_order_let_bindings() -> googletest::Result<()> {
"testdata/lint_findings.nix:12 [manual_inherit_from] Use `inherit` for this selected attribute\n",
"testdata/lint_findings.nix:13 [unquoted_uri] URI literals should be quoted\n",
"testdata/lint_findings.nix [let_order] Let bindings must follow dependency order\n",
" bindings starting at line 2: first, second, nested\n",
" bindings starting at line 5: nestedSecond, nestedFirst\n",
" let whose first binding starts at line 2: first, second, nested\n",
" let whose first binding starts at line 5: nestedSecond, nestedFirst\n",
))
);
Ok(())