From 832bfe589c4498f4f702d60a447f680546f1f4a9 Mon Sep 17 00:00:00 2001 From: alexion Date: Sat, 26 Sep 2026 23:17:11 -0400 Subject: [PATCH] docs(natu): clarify let-order locations --- src/natu/natu.rs | 2 +- src/natu/natu_test.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/natu/natu.rs b/src/natu/natu.rs index 37c2dd6..dcc730e 100644 --- a/src/natu/natu.rs +++ b/src/natu/natu.rs @@ -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(", ") )?; } diff --git a/src/natu/natu_test.rs b/src/natu/natu_test.rs index e63fc54..434d5ba 100644 --- a/src/natu/natu_test.rs +++ b/src/natu/natu_test.rs @@ -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(())