about summary refs log tree commit diff
path: root/src/libsyntax/util/comments.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsyntax/util/comments.rs')
-rw-r--r--src/libsyntax/util/comments.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/util/comments.rs b/src/libsyntax/util/comments.rs
index ef9226a8879..5e9b7bf8322 100644
--- a/src/libsyntax/util/comments.rs
+++ b/src/libsyntax/util/comments.rs
@@ -32,14 +32,14 @@ pub struct Comment {
     pub pos: BytePos,
 }
 
-crate fn is_line_doc_comment(s: &str) -> bool {
+pub fn is_line_doc_comment(s: &str) -> bool {
     let res = (s.starts_with("///") && *s.as_bytes().get(3).unwrap_or(&b' ') != b'/') ||
               s.starts_with("//!");
     debug!("is {:?} a doc comment? {}", s, res);
     res
 }
 
-crate fn is_block_doc_comment(s: &str) -> bool {
+pub fn is_block_doc_comment(s: &str) -> bool {
     // Prevent `/**/` from being parsed as a doc comment
     let res = ((s.starts_with("/**") && *s.as_bytes().get(3).unwrap_or(&b' ') != b'*') ||
                s.starts_with("/*!")) && s.len() >= 5;