File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -4297,7 +4297,12 @@ fn check_duplicated_getter_and_setter_names(
4297
4297
4298
4298
fn format_doc_comments ( comments : & str , js_doc_comments : Option < String > ) -> String {
4299
4299
let body: String = comments. lines ( ) . fold ( String :: new ( ) , |mut output, c| {
4300
- let _ = writeln ! ( output, " *{}" , c) ;
4300
+ output. push_str ( " *" ) ;
4301
+ if !c. is_empty ( ) && !c. starts_with ( ' ' ) {
4302
+ output. push ( ' ' ) ;
4303
+ }
4304
+ output. push_str ( c) ;
4305
+ output. push ( '\n' ) ;
4301
4306
output
4302
4307
} ) ;
4303
4308
let doc = if let Some ( docs) = js_doc_comments {
Original file line number Diff line number Diff line change 3
3
export function get_url ( ) : URL ;
4
4
export function get_media_source ( ) : MediaSourceEnum ;
5
5
/**
6
- *The `MediaSourceEnum` enum.
6
+ * The `MediaSourceEnum` enum.
7
7
*
8
- **This API requires the following crate features to be activated: `MediaSourceEnum`*
8
+ * *This API requires the following crate features to be activated: `MediaSourceEnum`*
9
9
*/
10
10
type MediaSourceEnum = "camera" | "screen" | "application" | "window" | "browser" | "microphone" | "audioCapture" | "other" ;
You can’t perform that action at this time.
0 commit comments