-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
bugIssue is reported as a bugIssue is reported as a bugteam:VMAssigned to OTP team VMAssigned to OTP team VM
Description
Describe the bug
erl_tar:init/3 example code in
https://www.erlang.org/docs/28/apps/stdlib/erl_tar.html#init/3
{ok,Fd} = file:open(Name, ...).
{ok,TarDesc} = erl_tar:init(Fd, [write], ExampleFun),
is wrong since it uses [write] as the second argument of erl_tar:init/3 while only read or write are valid here.
if the returned TarDesc is used in erl_tar:add/3, the call will crash with badarg.
Expected behavior
Correct documentation
Affected versions
all versions since OTP 22
Metadata
Metadata
Assignees
Labels
bugIssue is reported as a bugIssue is reported as a bugteam:VMAssigned to OTP team VMAssigned to OTP team VM