Skip to content

Commit d0e26c5

Browse files
authored
chore: make function comment match function name (#4571)
1 parent 2b45eaa commit d0e26c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ignite/internal/tools/gen-mig-diffs/pkg/url/url.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (u URL) String() string {
5050
return fmt.Sprintf("%s://%s/%s.git", u.Protocol, u.Host, u.Path)
5151
}
5252

53-
// parseURL returns an URL object from SCP git URL.
53+
// parseSCPLike returns an URL object from SCP git URL.
5454
func parseSCPLike(endpoint string) (URL, bool) {
5555
if matchesScheme(endpoint) || !matchesScpLike(endpoint) {
5656
return URL{}, false

ignite/pkg/goanalysis/goanalysis.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ func getGenDeclNames(genDecl *ast.GenDecl) ([]string, error) {
178178
return decls, nil
179179
}
180180

181-
// getGenDeclNames returns the method declaration inside the ast.Expr.
181+
// getCallExprName returns the method declaration inside the ast.Expr.
182182
func getCallExprName(expr ast.Expr) (string, error) {
183183
call, ok := expr.(*ast.CallExpr)
184184
if !ok {

0 commit comments

Comments
 (0)