Skip to content

Error in 16.1 #1026

Open
Open
@AskYous

Description

@AskYous

Hello,

In 16.1, it says:

Use braces with all multi-line blocks.

But in the examples, there's a contradiction:

// good
if (test) return false;

And

// bad
function foo() { return false; }

The second one shouldn't say 'bad' since it's not multi-line block like the rule says.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions