diff --git a/internal/graph/graph.go b/internal/graph/graph.go index 9cc74bbb43..dba7bad9df 100644 --- a/internal/graph/graph.go +++ b/internal/graph/graph.go @@ -28,10 +28,10 @@ import ( ) var ( - // Removes package name and method arugments for Java method names. + // Removes package name and method arguments for Java method names. // See tests for examples. javaRegExp = regexp.MustCompile(`^(?:[a-z]\w*\.)*([A-Z][\w\$]*\.(?:|[a-z][\w\$]*(?:\$\d+)?))(?:(?:\()|$)`) - // Removes package name and method arugments for Go function names. + // Removes package name and method arguments for Go function names. // See tests for examples. goRegExp = regexp.MustCompile(`^(?:[\w\-\.]+\/)+(.+)`) // Removes potential module versions in a package path.