From f2d62d446a7b1e03ef14b580e2aca0fad8aa23ef Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 5 Jul 2022 13:31:46 +0200 Subject: Refactor to do some to dos --- src/subtokenize.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/subtokenize.rs') diff --git a/src/subtokenize.rs b/src/subtokenize.rs index f3e9ae0..6b0460c 100644 --- a/src/subtokenize.rs +++ b/src/subtokenize.rs @@ -36,7 +36,7 @@ pub fn link(events: &mut [Event], index: usize) { link_to(events, index - 2, index); } -/// To do +/// Link two arbitrary [`Event`][]s together. pub fn link_to(events: &mut [Event], pevious: usize, next: usize) { let prev = &mut events[pevious]; assert!( @@ -111,7 +111,7 @@ pub fn subtokenize(mut events: Vec, parse_state: &ParseState) -> (Vec = match result.0 { @@ -143,7 +143,6 @@ pub fn subtokenize(mut events: Vec, parse_state: &ParseState) -> (Vec= ends[end_index] { let link = index_opt.unwrap(); -- cgit