diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2020-02-26 13:03:46 +0100 | 
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2020-02-27 14:57:22 +0100 | 
| commit | 7c84ba112429eb9bc0b99a6fe32a453c920a764c (patch) | |
| tree | 98a44856b3d3b0792b8c9726b34cbbb5a7f34c67 /src/librustdoc/markdown.rs | |
| parent | a8437cf213ac1e950b6f5c691c4d2a29bf949bcd (diff) | |
| download | rust-7c84ba112429eb9bc0b99a6fe32a453c920a764c.tar.gz rust-7c84ba112429eb9bc0b99a6fe32a453c920a764c.zip  | |
use char instead of &str for single char patterns
Diffstat (limited to 'src/librustdoc/markdown.rs')
| -rw-r--r-- | src/librustdoc/markdown.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/markdown.rs b/src/librustdoc/markdown.rs index a37efc22c93..a41fdd2ff17 100644 --- a/src/librustdoc/markdown.rs +++ b/src/librustdoc/markdown.rs @@ -19,7 +19,7 @@ fn extract_leading_metadata(s: &str) -> (Vec<&str>, &str) { let mut count = 0; for line in s.lines() { - if line.starts_with("# ") || line.starts_with("%") { + if line.starts_with("# ") || line.starts_with('%') { // trim the whitespace after the symbol metadata.push(line[1..].trim_start()); count += line.len() + 1;  | 
