all: fix linting errors for comments (#990)

* fix: linting errors for comments

* fix: one more comment
This commit is contained in:
Nathaniel Peiffer
2020-11-27 16:02:18 +11:00
committed by GitHub
parent ac8e8dac83
commit 42fa731f39
8 changed files with 26 additions and 23 deletions

View File

@@ -1165,10 +1165,12 @@ func (p *Predicate) ContainsFold(col, sub string) *Predicate {
})
}
// CompositeGT returns a comiposite ">" predicate
func CompositeGT(columns []string, args ...interface{}) *Predicate {
return P().CompositeGT(columns, args...)
}
// CompositeLT returns a comiposite "<" predicate
func CompositeLT(columns []string, args ...interface{}) *Predicate {
return P().CompositeLT(columns, args...)
}
@@ -1185,13 +1187,13 @@ func (p *Predicate) compositeP(operator string, columns []string, args ...interf
})
}
// GT returns a composite ">" predicate.
// CompositeGT returns a composite ">" predicate.
func (p *Predicate) CompositeGT(columns []string, args ...interface{}) *Predicate {
const operator = " > "
return p.compositeP(operator, columns, args...)
}
// LT appends a composite "<" predicate.
// CompositeLT appends a composite "<" predicate.
func (p *Predicate) CompositeLT(columns []string, args ...interface{}) *Predicate {
const operator = " < "
return p.compositeP(operator, columns, args...)
@@ -2018,6 +2020,7 @@ func (b *Builder) Err() error {
// An Op represents a predicate operator.
type Op int
// Predicate operators
const (
OpEQ Op = iota // logical and.
OpNEQ // <>

View File

@@ -41,7 +41,7 @@ type (
}
)
// AddEdge adds an edge to the graph. It fails, if one of the node
// AddE adds an edge to the graph. It fails, if one of the node
// types is missing.
//
// g.AddE("pets", spec, "user", "pet")

View File

@@ -2,7 +2,7 @@
// This source code is licensed under the Apache 2.0 license found
// in the LICENSE file in the root directory of this source tree.
// sqlgraph provides graph abstraction capabilities on top
// Package sqlgraph provides graph abstraction capabilities on top
// of sql-based databases for ent codegen.
package sqlgraph