Skip to content

Commit

Permalink
CR: fix documentation format
Browse files Browse the repository at this point in the history
  • Loading branch information
Yumasi committed Oct 22, 2024
1 parent 5d0c6d0 commit c1425fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/collector/corechecks/servicediscovery/usm/ruby.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (r railsDetector) findRailsApplicationName(filename string) (string, bool)
return "", false
}

// Converts a PascalCasedWord to a snake_cased_word.
// railsUnderscore converts a PascalCasedWord to a snake_cased_word.
// It keeps uppercase acronyms together when converting (e.g. "HTTPServer" -> "http_server").
func railsUnderscore(pascalCasedWord string) string {
snake := matchFirstCap.ReplaceAllString(pascalCasedWord, "${1}_${2}")
Expand Down

0 comments on commit c1425fa

Please sign in to comment.