You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fnfoo(x:implIterator<Item = &'a PathBuf>) -> io::Result<implIterator<Item = &'a PathBuf>>{for foo in bar {for line inBufReader::new(File::open(banana)?)// A fairly long comment with https://google.github.io/flatbuffers/flatbuffers_grammar.html// an URL.lines(){let peach = match(loop{}){Some(idx) => idx + open_quote,// get the absolute position from the original stringNone => loop{},};}}}
rustfmt will produce the following diff:
.lines()
{
let peach = match (loop {}) {
- Some(idx) => idx + open_quote, // get the absolute position from the original string+ Some(idx) => idx + open_quote, /* get the absolute position from the original+ * string */
None => loop {},
};
}
In this diff an incorrectly aligned 2nd line of the block comment can be seen.
The text was updated successfully, but these errors were encountered:
nagisa
changed the title
Comment formatting is botched
Comment single-line to multi-line formatting is botched
Jul 18, 2019
Given source like this:
rustfmt will produce the following diff:
In this diff an incorrectly aligned 2nd line of the block comment can be seen.
The text was updated successfully, but these errors were encountered: