We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36e0387 commit 03a6a7cCopy full SHA for 03a6a7c
1 file changed
mzcore/src/sequence/peptidoform/parse.rs
@@ -1550,6 +1550,8 @@ fn labile_modifications<'a, const STRICT: bool>(
1550
}
1551
1552
/// Parse a charge state, defaulting to v2.1 but allowing fallback to v2.0 if needed.
1553
+/// # Errors
1554
+/// If this definition is neither a v2.1 or v2.0 valid charge
1555
fn parse_charge_state<'a>(
1556
base_context: &Context<'a>,
1557
line: &'a str,
@@ -1567,7 +1569,7 @@ fn parse_charge_state<'a>(
1567
1569
"Deprecated charge",
1568
1570
"A charge using the deprecated syntax of the ProForma 2.0 charge extension was detected",
1571
base_context.clone().add_highlight((0, range.start, 1)),
- ).suggestions([v.to_string()]));
1572
+ ).suggestions([format!("/{v}")]));
1573
((offset, v), errors)
1574
})
1575
} else {
0 commit comments