Skip to content

Commit 885a982

Browse files
committed
Better docstring
1 parent 260feb9 commit 885a982

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

testfile/testfile.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ import (
1010
)
1111

1212
// Ext return path with its current extension stripped and ext added.
13-
// It treats ext with and without a leading dot the same for simplicity.
13+
// It treats ext with and without a leading dot the same for simplicity of operation.
14+
// If ext is "", path is returned with its current extension stripped off.
1415
func Ext(path, ext string) string {
1516
currExt := filepath.Ext(path)
1617
path = strings.TrimSuffix(path, currExt)

0 commit comments

Comments
 (0)