Skip to content

Commit d57f2b7

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

File tree

10 files changed

+12
-12
lines changed

10 files changed

+12
-12
lines changed

cue/ast/ast.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ type StructLit struct {
489489
// NewStruct creates a struct from the given fields.
490490
//
491491
// A field is either a *Field, an *Elipsis, *LetClause, a *CommentGroup, or a
492-
// Label, optionally followed by a a token.OPTION to indicate the field is
492+
// Label, optionally followed by a token.OPTION to indicate the field is
493493
// optional, optionally followed by a token.ISA to indicate the field is a
494494
// definition followed by an expression for the field value.
495495
//

cue/parser/parser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ func (p *parser) consumeCommentGroup(prevLine, n int) (comments *ast.CommentGrou
328328

329329
// Advance to the next non-comment In the process, collect
330330
// any comment groups encountered, and refield the last lead and
331-
// and line comments.
331+
// line comments.
332332
//
333333
// A lead comment is a comment group that starts and ends in a
334334
// line without any other tokens and that is followed by a non-comment

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 --

encoding/jsonschema/constraints.go

Lines changed: 1 addition & 1 deletion
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
}

encoding/protobuf/testdata/gateway.proto.out.cue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ package v1alpha3
210210
// REQUIRED: One or more labels that indicate a specific set of pods/VMs
211211
// on which this gateway configuration should be applied. The scope of
212212
// label search is restricted to the configuration namespace in which the
213-
// the resource is present. In other words, the Gateway resource must
213+
// resource is present. In other words, the Gateway resource must
214214
// reside in the same namespace as the gateway workload instance.
215215
selector?: {
216216
[string]: string

encoding/protobuf/testdata/istio.io/api/networking/v1alpha3/gateway.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ message Gateway {
218218
// REQUIRED: One or more labels that indicate a specific set of pods/VMs
219219
// on which this gateway configuration should be applied. The scope of
220220
// label search is restricted to the configuration namespace in which the
221-
// the resource is present. In other words, the Gateway resource must
221+
// resource is present. In other words, the Gateway resource must
222222
// reside in the same namespace as the gateway workload instance.
223223
map<string, string> selector = 2 [ (cue.val) = "{[name=_]: name}"];
224224
}

encoding/protobuf/testdata/istio.io/api/networking/v1alpha3/gateway_proto_gen.cue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ package v1alpha3
210210
// REQUIRED: One or more labels that indicate a specific set of pods/VMs
211211
// on which this gateway configuration should be applied. The scope of
212212
// label search is restricted to the configuration namespace in which the
213-
// the resource is present. In other words, the Gateway resource must
213+
// resource is present. In other words, the Gateway resource must
214214
// reside in the same namespace as the gateway workload instance.
215215
selector?: {
216216
[string]: string

internal/core/adt/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ func (c *OpContext) Validate(check Validator, value Value) *Bottom {
487487
return err
488488
}
489489

490-
// yield evaluates a Comprehension within the given Environment and and calls
490+
// yield evaluates a Comprehension within the given Environment and calls
491491
// f for each result.
492492
func (c *OpContext) yield(
493493
node *Vertex, // errors are associated with this node

internal/core/adt/eval.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ func (c *OpContext) Unify(v *Vertex, state VertexStatus) {
350350

351351
// TODO: use a more principled form of dereferencing. For instance,
352352
// disjuncts could already be assumed to be the given Vertex, and
353-
// the the main vertex could be dereferenced during evaluation.
353+
// the main vertex could be dereferenced during evaluation.
354354
for _, a := range d.Arcs {
355355
for _, x := range a.Conjuncts {
356356
// All the environments for embedded structs need to be
@@ -1953,7 +1953,7 @@ func (n *nodeContext) expandOne() (done bool) {
19531953
for _, x := range exprs {
19541954
n.addExprConjunct(x.c)
19551955

1956-
// collect and and or
1956+
// collect and or
19571957
}
19581958
if len(n.exprs) < len(exprs) {
19591959
return true

pkg/strings/manual.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func Runes(s string) []rune {
5454
}
5555

5656
// MinRunes reports whether the number of runes (Unicode codepoints) in a string
57-
// is at least a certain minimum. MinRunes can be used a a field constraint to
57+
// is at least a certain minimum. MinRunes can be used a field constraint to
5858
// except all strings for which this property holds.
5959
func MinRunes(s string, min int) bool {
6060
// TODO: CUE strings cannot be invalid UTF-8. In case this changes, we need
@@ -64,7 +64,7 @@ func MinRunes(s string, min int) bool {
6464
}
6565

6666
// MaxRunes reports whether the number of runes (Unicode codepoints) in a string
67-
// exceeds a certain maximum. MaxRunes can be used a a field constraint to
67+
// exceeds a certain maximum. MaxRunes can be used a field constraint to
6868
// except all strings for which this property holds
6969
func MaxRunes(s string, max int) bool {
7070
// See comment in MinRunes implementation.

0 commit comments

Comments
 (0)