@@ -20,7 +20,7 @@ pub trait DocGroup: Database {
2020 get_item_documentation ( self . as_dyn_database ( ) , ( ) , item_id)
2121 }
2222
23- /// Gets the documentation of a certain as a vector of continuous tokens.
23+ /// Gets the documentation of an item as a vector of continuous tokens.
2424 fn get_item_documentation_as_tokens < ' db > (
2525 & ' db self ,
2626 item_id : DocumentableItemId < ' db > ,
@@ -34,7 +34,7 @@ pub trait DocGroup: Database {
3434 }
3535
3636 /// Gets the signature of an item and a list of [`LocationLink`]s to enable mapping
37- /// signature slices on documentable items.
37+ /// signature slices to documentable items.
3838 fn get_item_signature_with_links < ' db > (
3939 & ' db self ,
4040 item_id : DocumentableItemId < ' db > ,
@@ -124,7 +124,7 @@ fn get_crate_root_module_documentation<'db>(
124124 extract_item_module_level_documentation_from_file ( db, module_id)
125125}
126126
127- /// Gets the "//!" inner comment of the item (if only item supports inner comments).
127+ /// Gets the "//!" inner comment of the item (only if the item supports inner comments).
128128fn extract_item_inner_documentation < ' db > (
129129 db : & ' db dyn Database ,
130130 item_id : DocumentableItemId < ' db > ,
@@ -147,7 +147,7 @@ fn extract_item_inner_documentation<'db>(
147147 }
148148}
149149
150- /// Only gets the doc comments above the item.
150+ /// Gets only the doc comments above the item.
151151fn extract_item_outer_documentation < ' db > (
152152 db : & ' db dyn Database ,
153153 item_id : DocumentableItemId < ' db > ,
@@ -166,7 +166,7 @@ fn extract_item_outer_documentation<'db>(
166166 )
167167}
168168
169- /// Gets the module level comments of the item.
169+ /// Gets the module- level comments of the item.
170170fn extract_item_module_level_documentation < ' db > (
171171 db : & ' db dyn Database ,
172172 item_id : DocumentableItemId < ' db > ,
@@ -185,7 +185,7 @@ fn extract_item_module_level_documentation<'db>(
185185 }
186186}
187187
188- /// Only gets the comments inside the item.
188+ /// Gets only the comments inside the item.
189189fn extract_item_inner_documentation_from_raw_text ( raw_text : String ) -> String {
190190 raw_text
191191 . lines ( )
@@ -195,7 +195,7 @@ fn extract_item_inner_documentation_from_raw_text(raw_text: String) -> String {
195195 . join ( "\n " )
196196}
197197
198- /// Gets the module level comments of certain file.
198+ /// Gets the module- level comments of a file.
199199fn extract_item_module_level_documentation_from_file < ' db > (
200200 db : & ' db dyn Database ,
201201 file_id : FileId < ' db > ,
@@ -211,7 +211,7 @@ fn extract_item_module_level_documentation_from_file<'db>(
211211 )
212212}
213213
214- /// This function does 3 things to the line of comment:
214+ /// This function does 3 things to a comment line :
215215/// 1. Removes indentation
216216/// 2. If it starts with one of the passed prefixes, removes the given prefixes (including the space
217217/// after the prefix).
@@ -236,7 +236,7 @@ fn extract_comment_from_code_line(line: &str, comment_markers: &[&'static str])
236236 None
237237}
238238
239- /// Check whether the code line is a comment line.
239+ /// Checks whether the code line is a comment line.
240240fn is_comment_line ( line : & str ) -> bool {
241241 line. trim_start ( ) . starts_with ( "//" )
242242}
0 commit comments