Skip to content

Ch03-05 Control flow: Explicitly document if it's valid to break from a loop with return keyword #3114

@Henkhogan

Description

@Henkhogan
  • I have checked the latest main branch to see if this has already been fixed
  • I have searched existing issues and pull requests for duplicates

URL to the section(s) of the book with this problem: https://doc.rust-lang.org/book/ch03-05-control-flow.html

Description of the problem: the chapter does not tell if

return value;

is equivalent to

break value;

Suggested fix:
Since I read the documentation without ever compiling a rust project, I can not tell if they are equivalent or not

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions