Skip to content

Commit

Permalink
chore: remove duplicate word in comments
Browse files Browse the repository at this point in the history
Signed-off-by: Abirdcfly <[email protected]>
Change-Id: I35c997c57f69bab6b671088c5265ae427cea7b60
  • Loading branch information
Abirdcfly committed Apr 4, 2023
1 parent c67fe60 commit 454f0b5
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions encoding/jsonschema/constraints.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ var constraints = []*constraint{
state.doc(f)
f.Optional = token.Blank.Pos()
if len(obj.Elts) > 0 && len(f.Comments()) > 0 {
// TODO: change formatter such that either a a NewSection on the
// TODO: change formatter such that either a NewSection on the
// field or doc comment will cause a new section.
ast.SetRelPos(f.Comments()[0], token.NewSection)
}
Expand Down Expand Up @@ -573,7 +573,7 @@ var constraints = []*constraint{
p2("patternProperties", func(n cue.Value, s *state) {
s.usedTypes |= cue.StructKind
if n.Kind() != cue.StructKind {
s.errf(n, `value of "patternProperties" must be an an object, found %v`, n.Kind())
s.errf(n, `value of "patternProperties" must be an object, found %v`, n.Kind())
}
obj := s.object(n)
existing := excludeFields(s.obj.Elts)
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/qgo/qgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Commands:
extract Extract one-line signature of exported types of
the given package.
Functions that have have more than one return
Functions that have more than one return
argument or unknown types are skipped.
`

Expand Down
2 changes: 1 addition & 1 deletion internal/core/adt/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func DebugSortFields(c *OpContext, a []Feature) {
// Assert panics if the condition is false. Assert can be used to check for
// conditions that are considers to break an internal variant or unexpected
// condition, but that nonetheless probably will be handled correctly down the
// line. For instance, a faulty condition could lead to to error being caught
// line. For instance, a faulty condition could lead to error being caught
// down the road, but resulting in an inaccurate error message. In production
// code it is better to deal with the bad error message than to panic.
//
Expand Down
2 changes: 1 addition & 1 deletion internal/core/adt/disjunct.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ func (n *nodeContext) expandDisjuncts(
// the value was scalar before, we drop this information when there is
// only one disjunct, while not discarding hard defaults. TODO: a more
// principled approach would be to recognize that there is only one
// default at a point where this does not break commutativity. if
// default at a point where this does not break commutativity.
// if len(n.disjuncts) == 1 && n.disjuncts[0].defaultMode != isDefault {
// n.disjuncts[0].defaultMode = maybeDefault
// }
Expand Down
4 changes: 2 additions & 2 deletions internal/core/adt/eval.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ func (n *nodeContext) postDisjunct(state vertexStatus) {
// // AllConjunctsDone before evaluating b._env, it is still okay
// // to add arcs to b after this evaluation: only the set of arcs
// // in b._env needs to be frozen after that.
// for for k2, v2 in b._env {
// for k2, v2 in b._env {
// ("b"): env: (k2): v2
// }
// }
Expand Down Expand Up @@ -2076,7 +2076,7 @@ func (n *nodeContext) expandOne(state vertexStatus) (done bool) {
for _, x := range exprs {
n.addExprConjunct(x.c, state)

// collect and and or
// collect and or
}
if len(n.exprs) < len(exprs) {
return true
Expand Down
2 changes: 1 addition & 1 deletion internal/core/adt/expr.go
Original file line number Diff line number Diff line change
Expand Up @@ -1245,7 +1245,7 @@ func (x *BinaryExpr) evaluate(c *OpContext, state vertexStatus) Value {
}

// Do not fully evaluate the Vertex: if it is embedded within a
// a struct with arcs that are referenced from within this expression,
// struct with arcs that are referenced from within this expression,
// it will end up adding "locked" fields, resulting in an error.
// It will be the responsibility of the "caller" to get the result
// to the required state. If the struct is already dynamic, we will
Expand Down
2 changes: 1 addition & 1 deletion pkg/tool/exec/pkg.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 454f0b5

Please sign in to comment.