Skip to content

Commit a78f187

Browse files
committed
lint
1 parent 91881d9 commit a78f187

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/cli/internal/cli/split/split.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ func (o *Opts) saveVersionedOas(oas *openapi3.T, version string) error {
9494
return openapi.Save(path, oas, o.format, o.fs)
9595
}
9696

97-
// getVersionPath replaces file path from 'path/path.to.file/file.<json|yaml|any>'
98-
// to 'path/path.to.file/file-version.<json|yaml|any>'
97+
// getVersionPath replaces file path with version.
98+
// Example: 'path/path.to.file/file.<json|yaml|any>' to 'path/path.to.file/file-version.<json|yaml|any>'.
9999
func getVersionPath(path, version string) string {
100100
extIndex := strings.LastIndex(path, ".")
101101
if extIndex == -1 {

0 commit comments

Comments
 (0)