Skip to content

Commit f215b3a

Browse files
committed
docs: fix erl_tar:init/3 example code
Closes #10291
1 parent 43f53b9 commit f215b3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/stdlib/src/erl_tar.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ Here `Fd` was specified to function [`init/3`](`init/3`) as:
199199

200200
```erlang
201201
{ok,Fd} = file:open(Name, ...).
202-
{ok,TarDesc} = erl_tar:init(Fd, [write], ExampleFun),
202+
{ok,TarDesc} = erl_tar:init(Fd, write, ExampleFun),
203203
```
204204

205205
`TarDesc` is then used:

0 commit comments

Comments
 (0)