aboutsummaryrefslogtreecommitdiff
path: root/core/path
diff options
context:
space:
mode:
authorJesse Stiller <aquageneral@hotmail.com>2023-10-30 11:57:44 +1000
committerJesse Stiller <aquageneral@hotmail.com>2023-10-30 11:57:44 +1000
commit3bd1918c5e2f49ad938aa0a9244e596a4340a4ae (patch)
tree11b41880cee7ebe5011ef70be1ed05761316f235 /core/path
parent1d9f6346d47957d762887cceca37851f84eabeeb (diff)
Fixed typo "fot" and clarified slashpath.ext
Diffstat (limited to 'core/path')
-rw-r--r--core/path/slashpath/path.odin6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/path/slashpath/path.odin b/core/path/slashpath/path.odin
index 5f5ab2ae9..ada473c34 100644
--- a/core/path/slashpath/path.odin
+++ b/core/path/slashpath/path.odin
@@ -159,9 +159,9 @@ join :: proc(elems: []string, allocator := context.allocator) -> string {
return ""
}
-// ext returns the file name extension used by "path"
-// The extension is the suffix beginning at the file fot in the last slash separated element of "path"
-// The path is empty if there is no dot
+// ext returns the file name extension used by "path".
+// The extension is the suffix beginning at the dot character in the last slash separated element of "path".
+// The path is empty if there is no dot character.
ext :: proc(path: string, new := false, allocator := context.allocator) -> string {
for i := len(path)-1; i >= 0 && !is_separator(path[i]); i -= 1 {
if path[i] == '.' {