We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20d229f commit e3e31faCopy full SHA for e3e31fa
src/os/file.go
@@ -730,7 +730,7 @@ func ReadFile(name string) ([]byte, error) {
730
// WriteFile writes data to the named file, creating it if necessary.
731
// If the file does not exist, WriteFile creates it with permissions perm (before umask);
732
// otherwise WriteFile truncates it before writing, without changing permissions.
733
-// Since Writefile requires multiple system calls to complete, a failure mid-operation
+// Since Writefile requires multiple system calls to complete, a failure mid-operation
734
// can leave the file in a partially written state.
735
func WriteFile(name string, data []byte, perm FileMode) error {
736
f, err := OpenFile(name, O_WRONLY|O_CREATE|O_TRUNC, perm)
0 commit comments