Skip to content

Commit d8c71fa

Browse files
Abirdcflymvdan
authored andcommitted
all: remove duplicate words in comments
Closes #1895 as merged as of commit 2498b54. Signed-off-by: Abirdcfly <[email protected]> Change-Id: I8581f2a036427e607bdb42141cabc93db95bda0a Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/552161 Unity-Result: CUEcueckoo <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Roger Peppe <[email protected]>
1 parent 53d3bc7 commit d8c71fa

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

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/exec.cue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Run: {
4444
// If it is of typ bytes or string, that input will be used instead.
4545
stdin: *null | string | bytes
4646

47-
// success is set to true when the process terminates with with a zero exit
47+
// success is set to true when the process terminates with a zero exit
4848
// code or false otherwise. The user can explicitly specify the value
4949
// force a fatal error if the desired success code is not reached.
5050
success: bool

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)