]> git.lizzy.rs Git - rust.git/commit
Be more strict about doc comments
authorCorey Richardson <corey@octayn.net>
Mon, 25 Nov 2013 04:23:50 +0000 (23:23 -0500)
committerCorey Richardson <corey@octayn.net>
Wed, 27 Nov 2013 23:00:50 +0000 (18:00 -0500)
commitb50b1628840daf849e548c83372f85bc13092314
tree0aaafa415f83349218babac24c31f4c2f06e85da
parente147a090a5c7125428c16b142922002f7a645ea1
Be more strict about doc comments

Previously, `//// foo` and `/*** foo ***/` were accepted as doc comments. This
changes that, so that only `/// foo` and `/** foo ***/` are accepted. This
confuses many newcomers and it seems weird.

Also update the manual for these changes, and modernify the EBNF for comments.

Closes #10638
doc/rust.md
src/etc/vim/syntax/rust.vim
src/libsyntax/parse/lexer.rs
src/test/run-pass/issue-10638.rs [new file with mode: 0644]