Skip to content

Commit a43d98a

Browse files
committed
chore: remove duplicate word in comments
Signed-off-by: Abirdcfly <[email protected]> Change-Id: I44110b67882b1f1e525904e4b264018f7613ea00
1 parent c67fe60 commit a43d98a

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

cue/testdata/references/errors.txtar

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ missingFieldNestedInInterpolation: {
2727
// Must refer to `b` in error
2828
r1: "\(a.b.c)"
2929
// Must refer to `d` in error: in case only one error is shown for a
30-
// a location, ensure it doesn't alphabetically sort and pick `c` instead.
30+
// location, ensure it doesn't alphabetically sort and pick `c` instead.
3131
r2: "\(a.d.c)"
3232
}
3333
-- out/eval/stats --

encoding/jsonschema/constraints.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ var constraints = []*constraint{
469469
state.doc(f)
470470
f.Optional = token.Blank.Pos()
471471
if len(obj.Elts) > 0 && len(f.Comments()) > 0 {
472-
// TODO: change formatter such that either a a NewSection on the
472+
// TODO: change formatter such that either a NewSection on the
473473
// field or doc comment will cause a new section.
474474
ast.SetRelPos(f.Comments()[0], token.NewSection)
475475
}
@@ -573,7 +573,7 @@ var constraints = []*constraint{
573573
p2("patternProperties", func(n cue.Value, s *state) {
574574
s.usedTypes |= cue.StructKind
575575
if n.Kind() != cue.StructKind {
576-
s.errf(n, `value of "patternProperties" must be an an object, found %v`, n.Kind())
576+
s.errf(n, `value of "patternProperties" must be an object, found %v`, n.Kind())
577577
}
578578
obj := s.object(n)
579579
existing := excludeFields(s.obj.Elts)

internal/cmd/qgo/qgo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Commands:
4141
extract Extract one-line signature of exported types of
4242
the given package.
4343
44-
Functions that have have more than one return
44+
Functions that have more than one return
4545
argument or unknown types are skipped.
4646
`
4747

internal/core/adt/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func DebugSortFields(c *OpContext, a []Feature) {
8585
// Assert panics if the condition is false. Assert can be used to check for
8686
// conditions that are considers to break an internal variant or unexpected
8787
// condition, but that nonetheless probably will be handled correctly down the
88-
// line. For instance, a faulty condition could lead to to error being caught
88+
// line. For instance, a faulty condition could lead to error being caught
8989
// down the road, but resulting in an inaccurate error message. In production
9090
// code it is better to deal with the bad error message than to panic.
9191
//

internal/core/adt/disjunct.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ func (n *nodeContext) expandDisjuncts(
373373
// the value was scalar before, we drop this information when there is
374374
// only one disjunct, while not discarding hard defaults. TODO: a more
375375
// principled approach would be to recognize that there is only one
376-
// default at a point where this does not break commutativity. if
376+
// default at a point where this does not break commutativity.
377377
// if len(n.disjuncts) == 1 && n.disjuncts[0].defaultMode != isDefault {
378378
// n.disjuncts[0].defaultMode = maybeDefault
379379
// }

internal/core/adt/eval.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ func (n *nodeContext) postDisjunct(state vertexStatus) {
476476
// // AllConjunctsDone before evaluating b._env, it is still okay
477477
// // to add arcs to b after this evaluation: only the set of arcs
478478
// // in b._env needs to be frozen after that.
479-
// for for k2, v2 in b._env {
479+
// for k2, v2 in b._env {
480480
// ("b"): env: (k2): v2
481481
// }
482482
// }
@@ -2076,7 +2076,7 @@ func (n *nodeContext) expandOne(state vertexStatus) (done bool) {
20762076
for _, x := range exprs {
20772077
n.addExprConjunct(x.c, state)
20782078

2079-
// collect and and or
2079+
// collect and or
20802080
}
20812081
if len(n.exprs) < len(exprs) {
20822082
return true

internal/core/adt/expr.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,7 @@ func (x *BinaryExpr) evaluate(c *OpContext, state vertexStatus) Value {
12451245
}
12461246

12471247
// Do not fully evaluate the Vertex: if it is embedded within a
1248-
// a struct with arcs that are referenced from within this expression,
1248+
// struct with arcs that are referenced from within this expression,
12491249
// it will end up adding "locked" fields, resulting in an error.
12501250
// It will be the responsibility of the "caller" to get the result
12511251
// to the required state. If the struct is already dynamic, we will

pkg/tool/exec/pkg.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)