Skip to content

Commit a973b97

Browse files
authored
[docs] Fixup code example (#39)
1 parent b614185 commit a973b97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/System/FilePath/FilePathSyntax.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,8 @@ extension FilePath {
320320
/// Example:
321321
///
322322
/// var path = "/tmp/file"
323-
/// path.extension = ".txt" // path is "/tmp/file.txt"
324-
/// path.extension = ".o" // path is "/tmp/file.o"
323+
/// path.extension = "txt" // path is "/tmp/file.txt"
324+
/// path.extension = "o" // path is "/tmp/file.o"
325325
/// path.extension = nil // path is "/tmp/file"
326326
/// path.extension = "" // path is "/tmp/file."
327327
///

0 commit comments

Comments
 (0)