p.278 capturing references or moving ownership

Open Beginner friendly
#4,801 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
85/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Quiet
Tech stack
rust
Domain
documentation

Research direction

Start at page 278 of The Rust Programming Language, find the sentence about what the function does with its captured values, and compare it with the surrounding closure discussion. Update the wording to consistently refer to the closure, then verify the rendered page reads clearly.

Written by the indexing model from the issue text.

Description

This is a very good book that I am depending on quite heavily as my number one resource to learn Rust.

On this page I see "...based on what the body of the function does with its captured values" but since on previous pages you were just doing closures vs. functions syntax compare and contrast, I feel that for consistency, it could read "based on what the body of the closure does with its captured values".

I think that I might be nit-picking but for someone new to programming, even something like this might trip them up.

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

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/book

All issues in rust-lang/book

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.