Skip to content

Commit df3e9d9

Browse files
authored
docs: fix typos in comments (#9569)
## Summary Fix duplicated word typos in comments: - `the the` → `the` - `is is` → `it is` - `to to` → `to` - `it it` → `it` ## Files Changed - dql/parser.go - lex/lexer.go - graphql/resolve/mutation_rewriter.go - worker/sort.go
1 parent d2a1bd4 commit df3e9d9

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

dql/parser.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,7 @@ func getSchema(it *lex.ItemIterator) (*pb.SchemaRequest, error) {
12321232
return nil, it.Errorf("Invalid schema block.")
12331233
}
12341234

1235-
// parseDqlVariables parses the the DQL variable declaration.
1235+
// parseDqlVariables parses the DQL variable declaration.
12361236
func parseDqlVariables(it *lex.ItemIterator, vmap varMap) error {
12371237
expectArg := true
12381238
if item, ok := it.PeekOne(); ok && item.Typ == itemRightRound {
@@ -1824,7 +1824,7 @@ L:
18241824
function.Attr = nestedFunc.Attr
18251825
function.IsCount = true
18261826
case uidFunc:
1827-
// TODO (Anurag): See if is is possible to support uid(1,2,3) when
1827+
// TODO (Anurag): See if it is possible to support uid(1,2,3) when
18281828
// uid is nested inside a function like @filter(uid_in(predicate, uid()))
18291829
if len(nestedFunc.NeedsVar) != 1 {
18301830
return nil,

graphql/resolve/mutation_rewriter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1321,7 +1321,7 @@ func asIDReference(
13211321
//
13221322
// Currently adds enforce the schema ! restrictions, but updates don't.
13231323
// e.g. a Post might have `title: String!“ in the schema, but, a Post update could
1324-
// set that to to null. ATM we allow this and it'll just triggers GraphQL error propagation
1324+
// set that to null. ATM we allow this and it'll just triggers GraphQL error propagation
13251325
// when that is in a query result. This is the same case as deletes: e.g. deleting
13261326
// an author might make the `author: Author!` field of a bunch of Posts invalid.
13271327
// (That might actually be helpful if you want to run one mutation to remove something

lex/lexer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func (p *ItemIterator) Prev() bool {
9999
return false
100100
}
101101

102-
// Restore restores the the iterator to position specified.
102+
// Restore restores the iterator to position specified.
103103
func (p *ItemIterator) Restore(pos int) {
104104
x.AssertTrue(pos <= len(p.l.items) && pos >= -1)
105105
p.idx = pos

worker/sort.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ func intersectBucket(ctx context.Context, ts *pb.SortMessage, token string,
647647

648648
// We are within the page. We need to apply sorting.
649649
// Sort results by value before applying offset.
650-
// TODO (pawan) - Why do we do this? Looks like it it is only useful for language.
650+
// TODO (pawan) - Why do we do this? Looks like it is only useful for language.
651651
if vals, err = sortByValue(ctx, ts, result, scalar); err != nil {
652652
return err
653653
}

0 commit comments

Comments
 (0)