diff --git a/lib/std/Io/Dir.zig b/lib/std/Io/Dir.zig index 414e63c99cea565c4176dfa2dc0a327fe2ebec63..a5bce6c76fdcf848b4f63e0d9100454804f5bb3f 100644 --- a/lib/std/Io/Dir.zig +++ b/lib/std/Io/Dir.zig @@ -1917,7 +1917,8 @@ pub const CreateFileAtomicError = error{ } || Io.Dir.PathNameError || Io.Cancelable || Io.UnexpectedError; /// Create an unnamed ephemeral file that can eventually be atomically -/// materialized into `sub_path`. +/// materialized into `sub_path`. `sub_path` must be valid until the atomic +/// file is materialized. /// /// The returned `File.Atomic` provides API to emulate the behavior in case it /// is not directly supported by the underlying operating system.