From 73e2117b43be3627754e9a6a5a630afb770dd3de Mon Sep 17 00:00:00 2001 From: John Kerl Date: Sun, 25 Aug 2024 17:40:57 -0400 Subject: [PATCH] Misc. codespell findings (#1628) --- docs/src/index.md | 2 +- docs/src/index.md.in | 2 +- docs/src/manpage.md | 4 ++-- docs/src/manpage.txt | 4 ++-- docs/src/reference-verbs.md | 4 ++-- man/manpage.txt | 4 ++-- man/mlr.1 | 4 ++-- pkg/cli/flatten_unflatten.go | 2 +- pkg/dsl/cst/for.go | 6 +++--- pkg/dsl/cst/types.go | 2 +- pkg/input/record_reader_csv.go | 2 +- pkg/transformers/put_or_filter.go | 4 ++-- test/cases/cli-help/0001/expout | 4 ++-- test/cases/dsl-for-variants/0006/experr | 2 +- test/cases/dsl-for-variants/0008/experr | 2 +- test/cases/dsl-for-variants/0009/experr | 2 +- test/cases/dsl-for-variants/0010/experr | 2 +- test/cases/dsl-triple-for-loops/0015/experr | 2 +- test/cases/dsl-triple-for-loops/0016/experr | 2 +- 19 files changed, 28 insertions(+), 28 deletions(-) diff --git a/docs/src/index.md b/docs/src/index.md index 799123fca..fd39051a6 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -45,7 +45,7 @@ The `sort`, `head`, etc are called *verbs*. They're analogs of familiar command- mlr --csv put '$rate = $units / $seconds' input.csv -which allow you to succintly express your own logic. +which allow you to succinctly express your own logic. **Multiple domains:** People use Miller for data analysis, data science, software engineering, devops/system-administration, journalism, scientific research, and more. diff --git a/docs/src/index.md.in b/docs/src/index.md.in index 6d16f6d19..3722d45e6 100644 --- a/docs/src/index.md.in +++ b/docs/src/index.md.in @@ -29,7 +29,7 @@ GENMD-SHOW-COMMAND mlr --csv put '$rate = $units / $seconds' input.csv GENMD-EOF -which allow you to succintly express your own logic. +which allow you to succinctly express your own logic. **Multiple domains:** People use Miller for data analysis, data science, software engineering, devops/system-administration, journalism, scientific research, and more. diff --git a/docs/src/manpage.md b/docs/src/manpage.md index 04e0ce349..0783a57fa 100644 --- a/docs/src/manpage.md +++ b/docs/src/manpage.md @@ -1077,7 +1077,7 @@ This is simply a copy of what you should see on running `man mlr` at a command p 1mfilter0m Usage: mlr filter [options] {DSL expression} - Lets you use a domain-specific language to progamatically filter which + Lets you use a domain-specific language to programatically filter which stream records will be output. See also: https://miller.readthedocs.io/en/latest/reference-verbs @@ -1535,7 +1535,7 @@ This is simply a copy of what you should see on running `man mlr` at a command p 1mput0m Usage: mlr put [options] {DSL expression} - Lets you use a domain-specific language to progamatically alter stream records. + Lets you use a domain-specific language to programatically alter stream records. See also: https://miller.readthedocs.io/en/latest/reference-verbs Options: diff --git a/docs/src/manpage.txt b/docs/src/manpage.txt index 1f8f35e95..521ebb98e 100644 --- a/docs/src/manpage.txt +++ b/docs/src/manpage.txt @@ -1056,7 +1056,7 @@ 1mfilter0m Usage: mlr filter [options] {DSL expression} - Lets you use a domain-specific language to progamatically filter which + Lets you use a domain-specific language to programatically filter which stream records will be output. See also: https://miller.readthedocs.io/en/latest/reference-verbs @@ -1514,7 +1514,7 @@ 1mput0m Usage: mlr put [options] {DSL expression} - Lets you use a domain-specific language to progamatically alter stream records. + Lets you use a domain-specific language to programatically alter stream records. See also: https://miller.readthedocs.io/en/latest/reference-verbs Options: diff --git a/docs/src/reference-verbs.md b/docs/src/reference-verbs.md index 8105820c5..f11994d1a 100644 --- a/docs/src/reference-verbs.md +++ b/docs/src/reference-verbs.md @@ -970,7 +970,7 @@ a,b,c
 Usage: mlr filter [options] {DSL expression}
-Lets you use a domain-specific language to progamatically filter which
+Lets you use a domain-specific language to programatically filter which
 stream records will be output.
 See also: https://miller.readthedocs.io/en/latest/reference-verbs
 
@@ -2306,7 +2306,7 @@ Options:
 
 Usage: mlr put [options] {DSL expression}
-Lets you use a domain-specific language to progamatically alter stream records.
+Lets you use a domain-specific language to programatically alter stream records.
 See also: https://miller.readthedocs.io/en/latest/reference-verbs
 
 Options:
diff --git a/man/manpage.txt b/man/manpage.txt
index 1f8f35e95..521ebb98e 100644
--- a/man/manpage.txt
+++ b/man/manpage.txt
@@ -1056,7 +1056,7 @@
 
    1mfilter0m
        Usage: mlr filter [options] {DSL expression}
-       Lets you use a domain-specific language to progamatically filter which
+       Lets you use a domain-specific language to programatically filter which
        stream records will be output.
        See also: https://miller.readthedocs.io/en/latest/reference-verbs
 
@@ -1514,7 +1514,7 @@
 
    1mput0m
        Usage: mlr put [options] {DSL expression}
-       Lets you use a domain-specific language to progamatically alter stream records.
+       Lets you use a domain-specific language to programatically alter stream records.
        See also: https://miller.readthedocs.io/en/latest/reference-verbs
 
        Options:
diff --git a/man/mlr.1 b/man/mlr.1
index 50ccd2440..2ed7c3d2d 100644
--- a/man/mlr.1
+++ b/man/mlr.1
@@ -1319,7 +1319,7 @@ Options:
 .\}
 .nf
 Usage: mlr filter [options] {DSL expression}
-Lets you use a domain-specific language to progamatically filter which
+Lets you use a domain-specific language to programatically filter which
 stream records will be output.
 See also: https://miller.readthedocs.io/en/latest/reference-verbs
 
@@ -1909,7 +1909,7 @@ Options:
 .\}
 .nf
 Usage: mlr put [options] {DSL expression}
-Lets you use a domain-specific language to progamatically alter stream records.
+Lets you use a domain-specific language to programatically alter stream records.
 See also: https://miller.readthedocs.io/en/latest/reference-verbs
 
 Options:
diff --git a/pkg/cli/flatten_unflatten.go b/pkg/cli/flatten_unflatten.go
index d91602b43..006b65f53 100644
--- a/pkg/cli/flatten_unflatten.go
+++ b/pkg/cli/flatten_unflatten.go
@@ -53,7 +53,7 @@ package cli
 //   o Default is to auto-unflatten at output.
 //   o There is a --no-auto-unflatten for those who want it.
 //
-// * Overrriding these: if the last verb the user has explicitly provided is
+// * Overriding these: if the last verb the user has explicitly provided is
 //   flatten, don't undo that by putting an unflatten right after.
 //
 // ================================================================
diff --git a/pkg/dsl/cst/for.go b/pkg/dsl/cst/for.go
index 34d6b808d..22c490c47 100644
--- a/pkg/dsl/cst/for.go
+++ b/pkg/dsl/cst/for.go
@@ -805,7 +805,7 @@ func (root *RootNode) BuildTripleForLoopNode(astNode *dsl.ASTNode) (*TripleForLo
 			for i := 0; i < n-1; i++ {
 				if continuationExpressionASTNode.Children[i].Type != dsl.NodeTypeAssignment {
 					return nil, fmt.Errorf(
-						"mlr: the non-final triple-for continutation statements must be assignments.",
+						"mlr: the non-final triple-for continuation statements must be assignments.",
 					)
 				}
 				precontinuationAssignment, err := root.BuildAssignmentNode(
@@ -822,11 +822,11 @@ func (root *RootNode) BuildTripleForLoopNode(astNode *dsl.ASTNode) (*TripleForLo
 		if bareBooleanASTNode.Type != dsl.NodeTypeBareBoolean {
 			if n == 1 {
 				return nil, fmt.Errorf(
-					"mlr: the triple-for continutation statement must be a bare boolean.",
+					"mlr: the triple-for continuation statement must be a bare boolean.",
 				)
 			} else {
 				return nil, fmt.Errorf(
-					"mlr: the final triple-for continutation statement must be a bare boolean.",
+					"mlr: the final triple-for continuation statement must be a bare boolean.",
 				)
 			}
 		}
diff --git a/pkg/dsl/cst/types.go b/pkg/dsl/cst/types.go
index 4fa935edf..f490ca02b 100644
--- a/pkg/dsl/cst/types.go
+++ b/pkg/dsl/cst/types.go
@@ -58,7 +58,7 @@ type RootNode struct {
 type NodeBuilder func(astNode *dsl.ASTNode) (IEvaluable, error)
 
 // ----------------------------------------------------------------
-// This is for all statements and statemnt blocks within the CST.
+// This is for all statements and statement blocks within the CST.
 type IExecutable interface {
 	Execute(state *runtime.State) (*BlockExitPayload, error)
 }
diff --git a/pkg/input/record_reader_csv.go b/pkg/input/record_reader_csv.go
index 505020cee..68949b25a 100644
--- a/pkg/input/record_reader_csv.go
+++ b/pkg/input/record_reader_csv.go
@@ -358,7 +358,7 @@ func (wb WorkaroundBuffer) String() string {
 // ----------------------------------------------------------------
 // BOM-stripping
 //
-// Some CSVs start with a "byte-order mark" which is the 3-byte sequene
+// Some CSVs start with a "byte-order mark" which is the 3-byte sequence
 // \xef\xbb\xbf".  Any file with such contents trips up csv.Reader:
 //
 // * If a header line is not double-quoted then we can simply look at the first
diff --git a/pkg/transformers/put_or_filter.go b/pkg/transformers/put_or_filter.go
index 82f57e940..36fed42e5 100644
--- a/pkg/transformers/put_or_filter.go
+++ b/pkg/transformers/put_or_filter.go
@@ -53,9 +53,9 @@ func transformerPutOrFilterUsage(
 ) {
 	fmt.Fprintf(o, "Usage: %s %s [options] {DSL expression}\n", "mlr", verb)
 	if verb == "put" {
-		fmt.Fprintf(o, "Lets you use a domain-specific language to progamatically alter stream records.\n")
+		fmt.Fprintf(o, "Lets you use a domain-specific language to programatically alter stream records.\n")
 	} else if verb == "filter" {
-		fmt.Fprintf(o, "Lets you use a domain-specific language to progamatically filter which\n")
+		fmt.Fprintf(o, "Lets you use a domain-specific language to programatically filter which\n")
 		fmt.Fprintf(o, "stream records will be output.\n")
 	}
 	fmt.Fprintf(o, "See also: https://miller.readthedocs.io/en/latest/reference-verbs\n")
diff --git a/test/cases/cli-help/0001/expout b/test/cases/cli-help/0001/expout
index e6ed5ea33..41079ee75 100644
--- a/test/cases/cli-help/0001/expout
+++ b/test/cases/cli-help/0001/expout
@@ -186,7 +186,7 @@ Options:
 ================================================================
 filter
 Usage: mlr filter [options] {DSL expression}
-Lets you use a domain-specific language to progamatically filter which
+Lets you use a domain-specific language to programatically filter which
 stream records will be output.
 See also: https://miller.readthedocs.io/en/latest/reference-verbs
 
@@ -666,7 +666,7 @@ Options:
 ================================================================
 put
 Usage: mlr put [options] {DSL expression}
-Lets you use a domain-specific language to progamatically alter stream records.
+Lets you use a domain-specific language to programatically alter stream records.
 See also: https://miller.readthedocs.io/en/latest/reference-verbs
 
 Options:
diff --git a/test/cases/dsl-for-variants/0006/experr b/test/cases/dsl-for-variants/0006/experr
index 148fb6f19..3a9ad9c69 100644
--- a/test/cases/dsl-for-variants/0006/experr
+++ b/test/cases/dsl-for-variants/0006/experr
@@ -1 +1 @@
-mlr: the triple-for continutation statement must be a bare boolean.
+mlr: the triple-for continuation statement must be a bare boolean.
diff --git a/test/cases/dsl-for-variants/0008/experr b/test/cases/dsl-for-variants/0008/experr
index ad7b7a3ce..8c456cbf6 100644
--- a/test/cases/dsl-for-variants/0008/experr
+++ b/test/cases/dsl-for-variants/0008/experr
@@ -1 +1 @@
-mlr: the final triple-for continutation statement must be a bare boolean.
+mlr: the final triple-for continuation statement must be a bare boolean.
diff --git a/test/cases/dsl-for-variants/0009/experr b/test/cases/dsl-for-variants/0009/experr
index 48da09e23..aeff07c4a 100644
--- a/test/cases/dsl-for-variants/0009/experr
+++ b/test/cases/dsl-for-variants/0009/experr
@@ -1 +1 @@
-mlr: the non-final triple-for continutation statements must be assignments.
+mlr: the non-final triple-for continuation statements must be assignments.
diff --git a/test/cases/dsl-for-variants/0010/experr b/test/cases/dsl-for-variants/0010/experr
index 48da09e23..aeff07c4a 100644
--- a/test/cases/dsl-for-variants/0010/experr
+++ b/test/cases/dsl-for-variants/0010/experr
@@ -1 +1 @@
-mlr: the non-final triple-for continutation statements must be assignments.
+mlr: the non-final triple-for continuation statements must be assignments.
diff --git a/test/cases/dsl-triple-for-loops/0015/experr b/test/cases/dsl-triple-for-loops/0015/experr
index 148fb6f19..3a9ad9c69 100644
--- a/test/cases/dsl-triple-for-loops/0015/experr
+++ b/test/cases/dsl-triple-for-loops/0015/experr
@@ -1 +1 @@
-mlr: the triple-for continutation statement must be a bare boolean.
+mlr: the triple-for continuation statement must be a bare boolean.
diff --git a/test/cases/dsl-triple-for-loops/0016/experr b/test/cases/dsl-triple-for-loops/0016/experr
index 48da09e23..aeff07c4a 100644
--- a/test/cases/dsl-triple-for-loops/0016/experr
+++ b/test/cases/dsl-triple-for-loops/0016/experr
@@ -1 +1 @@
-mlr: the non-final triple-for continutation statements must be assignments.
+mlr: the non-final triple-for continuation statements must be assignments.