Skip to content

Commit

Permalink
style: Use char for single-char str
Browse files Browse the repository at this point in the history
  • Loading branch information
ysthakur committed Aug 18, 2023
1 parent 204cdf8 commit 894a221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parse/type4.rs
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ pub fn parse(cmd_name: &str, page_text: &str) -> Option<Vec<Flag>> {
for para in paras {
let data = util::remove_groff_formatting(para);
let data = data.trim();
if let Some((options, desc)) = data.split_once("\n") {
if let Some((options, desc)) = data.split_once('\n') {
if let Some(flag) = util::make_flag(options, Some(desc)) {
flags.push(flag);
}

0 comments on commit 894a221

Please sign in to comment.