Browse Source

Fixed typo "fot" and clarified slashpath.ext

Jesse Stiller 1 year ago
parent
commit
3bd1918c5e
1 changed files with 3 additions and 3 deletions
  1. 3 3
      core/path/slashpath/path.odin

+ 3 - 3
core/path/slashpath/path.odin

@@ -159,9 +159,9 @@ join :: proc(elems: []string, allocator := context.allocator) -> string {
 	return ""
 	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 {
 ext :: proc(path: string, new := false, allocator := context.allocator) -> string {
 	for i := len(path)-1; i >= 0 && !is_separator(path[i]); i -= 1 {
 	for i := len(path)-1; i >= 0 && !is_separator(path[i]); i -= 1 {
 		if path[i] == '.' {
 		if path[i] == '.' {