chore: remove repetitive words (#3469)

remove repetitive words

Signed-off-by: gcmutator <329964069@qq.com>
This commit is contained in:
gcmutator
2024-03-09 04:18:47 +00:00
committed by GitHub
parent aeca0d8e8a
commit 21ff3620be
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ macro_rules! ok {
};
}
/// Internal util macro to to create an error.
/// Internal util macro to create an error.
macro_rules! error {
($span:expr, $msg: expr) => {
Err(syn::Error::new($span, $msg))
+1 -1
View File
@@ -152,7 +152,7 @@ impl Runner {
guard.key_guards.push(key_guard);
}
// Execute the procedure. We need to release the lock whenever the the execution
// Execute the procedure. We need to release the lock whenever the execution
// is successful or fail.
self.execute_procedure_in_loop().await;
+1 -1
View File
@@ -800,7 +800,7 @@ mod test {
.unwrap();
// only retain sum result
let mfp = mfp.project(vec![4]).unwrap();
// accept only if if the sum is greater than 10
// accept only if the sum is greater than 10
let mfp = mfp
.filter(vec![ScalarExpr::Column(0).call_binary(
ScalarExpr::Literal(Value::from(10i32), ConcreteDataType::int32_datatype()),
+1 -1
View File
@@ -158,7 +158,7 @@ impl CacheManager {
}
}
/// Gets the the write cache.
/// Gets the write cache.
pub(crate) fn write_cache(&self) -> Option<&WriteCacheRef> {
self.write_cache.as_ref()
}
+1 -1
View File
@@ -429,7 +429,7 @@ mod test {
ts_range,
value_range,
timestamps,
// that two `2.0` is because `duration_to_start` are shrunk to to
// that two `2.0` is because `duration_to_start` are shrunk to
// `duration_to_zero`, and causes `duration_to_zero` less than
// `extrapolation_threshold`.
vec![2.0, 1.5, 1.5, 1.5, 2.0, 1.5, 1.5, 1.5],
+1 -1
View File
@@ -353,7 +353,7 @@ pub enum AlterKind {
}
impl AlterKind {
/// Returns an error if the the alter kind is invalid.
/// Returns an error if the alter kind is invalid.
///
/// It allows adding column if not exists and dropping column if exists.
pub fn validate(&self, metadata: &RegionMetadata) -> Result<()> {