rust-lang / rust-lang/book

[17.5] useless closing bracket (after figure 17-6)

Open
#4,487 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
18.3k
Forks
4.1k
Avg merge
14m
Merged PRs (30d)
1

Description

URL to the section(s) of the book with this problem:
https://github.com/rust-lang/book/blob/main/src/ch17-05-traits-for-async.md
https://doc.rust-lang.org/book/ch17-05-traits-for-async.html#the-pin-and-unpin-traits
Description of the problem:
Useless closing bracket.

As an independent exercise, look at the docs for the types as well as the std::pin module and try to work out how you’d do this with a Pin wrapping a Box.)

Suggested fix:
Remove the closing bracket right after Figure 17-6

As an independent exercise, look at the docs for the types as well as the std::pin module and try to work out how you’d do this with a Pin wrapping a Box.

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 src/ch17-05-traits-for-async.md and read the section around Figure 17-6 and the Pin and Unpin traits. Remove the closing bracket after Figure 17-6, then check the rendered section to confirm the exercise text ends without the extra bracket.

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
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.