tarantool / tarantool/doc

Fix fio.pread description

Open
#3,203 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

factual error reference
Dominant language
CSS
Stars
15
Forks
49
Avg merge
1d 13h
Merged PRs (30d)
3

Description

fh:pread() doc says that it has only two formats:

  1. fh:pread(size, offset)
  2. fh:pread(buf, size, offset)

While the last argument offset has an implicit default equals 0. Actual usage is:
fh:pread([buf,] size, offset = 0)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the linked fh:pread() reference page under reference_lua/fio and inspect its argument-format description. Update the documented signatures to show that offset defaults to 0, then verify the page no longer presents only the two-argument forms.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.