Skip to content

Commit 0345f15

Browse files
authored
Merge pull request #376 from davidanthoff/doc-update
Document pipe style save
2 parents 162ba74 + 4fcaaa6 commit 0345f15

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/src/index.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Install FileIO within Julia via
1515
```julia
1616
julia> using Pkg
1717

18-
julia> Pkg.add("FileIO")`
18+
julia> Pkg.add("FileIO")
1919
```
2020

2121
## Usage
@@ -48,6 +48,12 @@ Likewise, saving might be as simple as
4848
save(filename, obj)
4949
```
5050

51+
You can also utilize a piping style to save values to files like this
52+
53+
```julia
54+
obj |> save(filename)
55+
```
56+
5157
If you just want to inspect a file to determine its format, then
5258

5359
```julia

0 commit comments

Comments
 (0)