Address trailing space

This commit is contained in:
Richard Tweed 2022-11-09 23:59:09 +00:00
parent 20d229f54e
commit e3e31fa0b9
1 changed files with 1 additions and 1 deletions

View File

@ -730,7 +730,7 @@ func ReadFile(name string) ([]byte, error) {
// WriteFile writes data to the named file, creating it if necessary.
// If the file does not exist, WriteFile creates it with permissions perm (before umask);
// otherwise WriteFile truncates it before writing, without changing permissions.
// Since Writefile requires multiple system calls to complete, a failure mid-operation
// Since Writefile requires multiple system calls to complete, a failure mid-operation
// can leave the file in a partially written state.
func WriteFile(name string, data []byte, perm FileMode) error {
f, err := OpenFile(name, O_WRONLY|O_CREATE|O_TRUNC, perm)