rust-lang / rust-lang/rust

`isolate_highest_one` should mention `next_power_of_two`

Open Beginner friendly
#159,238 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-docs needs-triage
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

Location (URL)

https://doc.rust-lang.org/1.97.0/std/primitive.u32.html#method.isolate_highest_one

Summary

isolate_highest_one behaves like a hypothetical prev_power_of_two (for unsigned ints), so it should have a "see also" linking to next_power_of_two, and vice-versa

The method was added in this PR: #136910

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

Start from the u32 documentation pages for isolate_highest_one and next_power_of_two linked in the issue, and inspect their existing "see also" sections. Add reciprocal links between the two methods, then verify the generated documentation shows both links correctly.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.