Skip to content

Commit

Permalink
fix doc typo: tempfile => tempname
Browse files Browse the repository at this point in the history
(cherry picked from commit 2101bde)
  • Loading branch information
StefanKarpinski committed Mar 24, 2022
1 parent 0fd6cda commit fd6748d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The public API of `Downloads` consists of two functions and three types:
### download

```jl
download(url, [ output = tempfile() ];
download(url, [ output = tempname() ];
[ method = "GET", ]
[ headers = <none>, ]
[ timeout = <none>, ]
Expand Down
2 changes: 1 addition & 1 deletion src/Downloads.jl
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ end
## download API ##

"""
download(url, [ output = tempfile() ];
download(url, [ output = tempname() ];
[ method = "GET", ]
[ headers = <none>, ]
[ timeout = <none>, ]
Expand Down

0 comments on commit fd6748d

Please sign in to comment.