Skip to content

flow_control/while.html is confusing #1175

@peter-lyons-kehl

Description

@peter-lyons-kehl

Hi,

Thank you for Rust By Example.
https://doc.rust-lang.org/stable/rust-by-example/flow_control/while.html reads "The while keyword can be used to loop until a condition is met." That is confusing - it sounds more like do...until() or until()...end loop from other languages.

Suggest changing to "The while keyword can be used to run a loop while a condition is true." (Based on https://doc.rust-lang.org/stable/book/ch03-05-control-flow.html#conditional-loops-with-while.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions