`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.

Assessment

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

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.

Description

A-docs needs-triage
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

Dominant language
Rust
Stars
119k
Forks
16.2k
Avg merge
2d 9h
Merged PRs (30d)
529

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.

More from rust-lang/rust

All issues in rust-lang/rust

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.