Skip to content

Util, io, ref (8): filled in @param, @tparam, and @return tags that were missed last time#26127

Draft
bvenners wants to merge 1 commit into
scala:mainfrom
artimahub:scaladoc-tags-util-io-ref-cleanup
Draft

Util, io, ref (8): filled in @param, @tparam, and @return tags that were missed last time#26127
bvenners wants to merge 1 commit into
scala:mainfrom
artimahub:scaladoc-tags-util-io-ref-cleanup

Conversation

@bvenners
Copy link
Copy Markdown
Contributor

As a next step in improving the Scaladoc documentation for the Scala 3 standard library, this PR fills in @param, @tparam, and @return tags for scala.util, scala.io, and scala.ref that were missed in the previous batch of PRs. I'm submitting it as a draft PR so to get CI to run on it, to see if it breaks anything, and to start getting feedback. We automated the generation of these changes and are starting to review them. We will review them all before making the PR non-draft. Please let me know if you see anything specific that you think could be improved.

Copy link
Copy Markdown
Contributor

@cheeseng cheeseng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some suggestions.

/** Returns the line number of the encoded position.
*
* @param pos the encoded position as returned by `encode`
* @return the 1-based line number extracted from `pos`, or 0 if the line is undefined
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we use encode function, I think we should say 'decoded here instead of 'extracted.

/** Returns the column number of the encoded position.
*
* @param pos the encoded position as returned by `encode`
* @return the 1-based column number extracted from `pos`, or 0 if the column is undefined
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we use encode function, I think we should say 'decoded here instead of 'extracted.

*
* @param minInclusive the lower bound (inclusive) of the range
* @param maxExclusive the upper bound (exclusive) of the range, must be greater than `minInclusive`
* @return a pseudorandom `Long` in the range `[minInclusive, maxExclusive)`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The closing bracket ) after the maxExclusive should be ]

@cheeseng cheeseng force-pushed the scaladoc-tags-util-io-ref-cleanup branch from 4580d88 to 249e26f Compare May 23, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants