summaryrefslogtreecommitdiffstats
path: root/src/parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.rs')
-rw-r--r--src/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.rs b/src/parser.rs
index b43d16e..2e8c205 100644
--- a/src/parser.rs
+++ b/src/parser.rs
@@ -33,7 +33,7 @@ fn parameter(i: &str) -> IResult<&str, String> {
fn ligature(i: &str) -> IResult<&str, Option<char>> {
match tuple((space0, tag(";")))(i) {
Ok((rest, c)) =>
- Ok((rest, c.1.chars().nth(0))),
+ Ok((rest, c.1.chars().next())),
Err(e) => Err(e)
}
}