rust-lang / rust-lang/book

chapter 4.1 Return Values and Scope inacurate comments

Open
#4,477 3 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/listings/ch04-understanding-ownership/listing-04-04/src/main.rs

Description of the problem:
s3 doesn't go out of scop
Suggested fix:
just correct the sentence

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 listings/ch04-understanding-ownership/listing-04-04/src/main.rs and read the chapter 4.1 text around the explanation of s3's scope. Correct the inaccurate sentence about s3 going out of scope, then verify that the wording accurately matches the example.

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
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.