Fix typo in doc of call-with-atomic-output-file

This commit is contained in:
Gustavo Massaccesi 2015-01-07 08:45:07 -03:00 committed by Matthew Flatt
parent 1f46ea1846
commit fc57ba7996

View File

@ -1134,9 +1134,9 @@ to avoid problems due to concurrent readers of @racket[file].
The @racket[proc] function is called with an output port for the The @racket[proc] function is called with an output port for the
temporary file, plus the path of the temporary file. The result of temporary file, plus the path of the temporary file. The result of
@racket[proc] is the result of @racket[call-with-atomic-output]. @racket[proc] is the result of @racket[call-with-atomic-output-file].
The @racket[call-with-atomic-output] function arranges to delete The @racket[call-with-atomic-output-file] function arranges to delete
temporary files on exceptions. temporary files on exceptions.
Windows prevents programs from deleting or replacing files that are Windows prevents programs from deleting or replacing files that are
@ -1144,7 +1144,7 @@ open, but it allows renaming of open files. Therefore, on Windows,
@racket[call-with-atomic-output-file] creates a second temporary file @racket[call-with-atomic-output-file] creates a second temporary file
@racket[_extra-tmp-file], renames @racket[file] to @racket[_extra-tmp-file], renames @racket[file] to
@racket[_extra-tmp-file], renames the temporary file written by @racket[_extra-tmp-file], renames the temporary file written by
@racket[proc] to @racket[p], and finally deletes @racket[proc] to @racket[file], and finally deletes
@racket[_extra-tmp-file].} @racket[_extra-tmp-file].}