gingerBill 1 year ago
parent
commit
2b43535961
1 changed files with 2 additions and 2 deletions
  1. 2 2
      core/os/os2/temp_file.odin

+ 2 - 2
core/os/os2/temp_file.odin

@@ -9,7 +9,7 @@ MAX_ATTEMPTS :: 1<<13 // Should be enough for everyone, right?
 //
 // Opens the file for reading and writing, with 0o666 permissions, and returns the new `^File`.
 // The filename is generated by taking a pattern, and adding a randomized string to the end.
-// If the pattern includes an "*", the randm string replaces the last "*".
+// If the pattern includes an "*", the random string replaces the last "*".
 // If `dir` is an empty tring, `temp_directory()` will be used.
 //
 // The caller must `close` the file once finished with.
@@ -43,7 +43,7 @@ mkdir_temp :: make_directory_temp
 // Creates a new temporary directory in the directory `dir`, and returns the path of the new directory.
 //
 // The directory name is generated by taking a pattern, and adding a randomized string to the end.
-// If the pattern includes an "*", the randm string replaces the last "*".
+// If the pattern includes an "*", the random string replaces the last "*".
 // If `dir` is an empty tring, `temp_directory()` will be used.
 @(require_results)
 make_directory_temp :: proc(dir, pattern: string, allocator: runtime.Allocator) -> (temp_path: string, err: Error) {