Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A reminder that a block is a single expr in closures
This is something that's only been briefly mentioned in the beginning of the tutorial and all of the closure examples within this subsection include only one expression between { and }.
- Loading branch information
93b2ddf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from bstrie
at https://github.com/alco/rust/commit/93b2ddfc88f581a1155236c9ac79983f72b0ff46
93b2ddf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging alco/rust/tutorial-block-expr = 93b2ddf into auto
93b2ddf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alco/rust/tutorial-block-expr = 93b2ddf merged ok, testing candidate = 1cf57f7
93b2ddf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
http://buildbot.rust-lang.org/builders/auto-linux/builds/1607
http://buildbot.rust-lang.org/builders/auto-win/builds/1602
http://buildbot.rust-lang.org/builders/auto-mac/builds/1621
93b2ddf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding incoming to auto = 1cf57f7