Skip to content

Conversation

@adamrk
Copy link
Contributor

@adamrk adamrk commented Apr 28, 2020

Addresses #4040

@matklad
Copy link
Contributor

matklad commented Apr 28, 2020

lgtm, but tests are failing?

bors d+

@bors
Copy link
Contributor

bors bot commented Apr 28, 2020

✌️ adamrk can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

const COMMENT_PREFIX_TO_KIND: &[(&str, CommentKind)] = {
use {CommentPlacement::*, CommentShape::*};
&[
("////", CommentKind { shape: Line, doc: None }),
Copy link
Contributor

@kjeremy kjeremy Apr 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is //// specifically called out in rust? If not I think the code that returns the text should be changed instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it explicitly says a line comment begins with either // or ////: https://doc.rust-lang.org/reference/comments.html
image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Me too!

@kjeremy
Copy link
Contributor

kjeremy commented Apr 28, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Apr 28, 2020

@bors bors bot merged commit 2096db9 into rust-lang:master Apr 28, 2020
@adamrk adamrk deleted the four-slashes-regular-comment branch September 29, 2020 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants