Skip to content

Commit

Permalink
Comment adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
traut committed Jan 8, 2025
1 parent f5a0f9e commit 257ee79
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/utils/string.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ func MemoizedKeys[M ~map[string]V, V any](m *M) func() string {
})
}

// Strip common whitespace from the beginnings of the lines, trim the end whitespace
// Tab is assumed to be equal to 4 spaces
// Strip common margin from the beginnings of the lines
func Dedent(text string) string {
lines := strings.Split(text, "\n")
commonIndent := findCommonIndent(lines)
Expand Down

0 comments on commit 257ee79

Please sign in to comment.