Skip to content
This repository was archived by the owner on Oct 9, 2018. It is now read-only.

Alignment for match expressions #31

Open
gsingh93 opened this issue Aug 26, 2014 · 1 comment
Open

Alignment for match expressions #31

gsingh93 opened this issue Aug 26, 2014 · 1 comment

Comments

@gsingh93
Copy link

The alignment section says not to use extra whitespace to align things, and it gives examples with struct declarations and let bindings. However, it doesn't give any examples with match expressions. Match expressions are the one thing I do align with whitespace (I've taken this habit from Haskell, where I've seen it done a lot), so I'd like clarification in the style guide about whether we should or shouldn't be aligning each case of a match expression.

@glennpratt
Copy link

👍

The arrows are aligned in the documentation here:

http://doc.rust-lang.org/reference.html#match-expressions

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants