rust-lang / prev.rust-lang.org

The previous Rust website. The current website's code is at https://github.com/rust-lang/www.rust-lang.org.
https://prev.rust-lang.org
Apache License 2.0
151 stars 340 forks source link

Fix ambiguity between brackets and braces #1026

Closed faheel closed 6 years ago

faheel commented 6 years ago

The section:

I can leave out parentheses on if conditions, so why do I have to put brackets around single line blocks? Why is the C style not allowed?

mentions "brackets" instead of "braces" (or "curly braces"), which seems ambiguous as it doesn't specify which types of brackets are being talked about (curly, square, round or angle brackets).

I've changed "brackets" to "braces" in this section.

steveklabnik commented 6 years ago

Hi @faheel ! Sorry to take so long to review this!

We use "curly brackets" as the proper way to disambiguate here, would you mind changing to that please? Thank you!

faheel commented 6 years ago

@steveklabnik I've made the changes.