Export is_valid_identifier and is_valid_function_name under internals.

This commit is contained in:
Stephen Chung
2022-07-25 22:05:52 +08:00
parent 492d79d8a2
commit 61056dfb24
3 changed files with 9 additions and 7 deletions

View File

@@ -260,7 +260,7 @@ impl RangeCase {
Self::InclusiveInt(..) => true,
}
}
/// Get the index to the [`ConditionalStmtBlock`].
/// Get the index to the [`ConditionalExpr`].
#[inline(always)]
#[must_use]
pub fn index(&self) -> usize {
@@ -268,7 +268,7 @@ impl RangeCase {
Self::ExclusiveInt(.., n) | Self::InclusiveInt(.., n) => *n,
}
}
/// Set the index to the [`ConditionalStmtBlock`].
/// Set the index to the [`ConditionalExpr`].
#[inline(always)]
pub fn set_index(&mut self, index: usize) {
match self {