MCPcopy Create free account
hub / github.com/microsoft/typescript-go / trimEnd

Function trimEnd

internal/parser/jsdoc.go:388–390  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

386}
387
388func trimEnd(s string) string {
389 return strings.TrimRightFunc(s, stringutil.IsWhiteSpaceLike)
390}
391
392func removeTrailingWhitespace(comments []string) []string {
393 end := len(comments)

Callers 1

removeTrailingWhitespaceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected