Rewrite the code comments for consistent tone and accuracy

Comments only: the tokens of every Go file are unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-01 19:08:00 +00:00
co-authored by Claude Sonnet 5.5
parent 41f752e1c1
commit 158661eefe
27 changed files with 716 additions and 437 deletions
+3
View File
@@ -23,6 +23,7 @@ var roundTripTexts = map[string]string{
"variable": "#define $A 1\n$A $B=2 label_cc$A=x\n",
}
// TestRoundTrip checks that awkward text is written back as it was read.
func TestRoundTrip(t *testing.T) {
for name, text := range roundTripTexts {
doc, err := Parse(strings.NewReader(text))
@@ -86,6 +87,8 @@ func TestIncludedTwice(t *testing.T) {
}
}
// TestValidate checks the problems that Validate reports for the text, as
// opposed to the values, of a document.
func TestValidate(t *testing.T) {
doc, err := Parse(strings.NewReader("lokey=1\n<region> sample=$GONE.wav\n#define $A 1\n<region> %%% sample=$A.wav\n"))
if err != nil {