Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
skius committed Aug 9, 2023
1 parent cba53a7 commit 54b0542
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions experimental/transliterator_parser/src/compile/pass2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
// called LICENSE at the top level of the ICU4X source tree
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).

use core::fmt;
use std::fmt::{Display, Formatter};
use super::*;
use crate::parse::UnicodeSet;
use core::fmt;
use icu_collections::codepointinvlist::CodePointInversionList;
use std::fmt::{Display, Formatter};
use zerovec::VarZeroVec;

use icu_transliteration::provider as ds;
Expand All @@ -31,6 +31,7 @@ struct MutVarTableField<T> {
current: u32,
}

// a mutable version of the zero-copy `VarTable` that allows easy construction
struct MutVarTable {
compounds: MutVarTableField<String>,
quantifiers_opt: MutVarTableField<String>,
Expand Down Expand Up @@ -196,7 +197,7 @@ pub(super) struct Pass2<'a, 'p> {
}

impl<'a, 'p> Pass2<'a, 'p> {
// TODO: the API for Pass2 could be better, maybe a non-self Pass2::run()
// TODO: the interface for Pass2 could be better, maybe a non-self Pass2::run()

pub(super) fn try_new(
data: &'a Pass1Data,
Expand Down

0 comments on commit 54b0542

Please sign in to comment.