Skip to content

HexDocs example of "drop superfluous _..." is incorrect #191

@ktekinay

Description

@ktekinay

Apologies if this is the wrong place to mention this.

On HexDocs here, in the second example (styled case statement), the "styled" is identical to "before".

# Before
case foo do
  _ = bar -> :ok
end
# Styled
case foo do
  _ = bar -> :ok
end

should be:

# Before
case foo do
  _ = bar -> :ok
end
# Styled
case foo do
  bar -> :ok <-- this
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions