mirror of
https://github.com/johnkerl/miller.git
synced 2026-01-23 02:14:13 +00:00
Misc. codespell findings (#1628)
This commit is contained in:
parent
1015f18e7b
commit
73e2117b43
19 changed files with 28 additions and 28 deletions
|
|
@ -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.
|
||||
//
|
||||
// ================================================================
|
||||
|
|
|
|||
|
|
@ -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.",
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue