fix typos

This commit is contained in:
Bruno Bigras
2023-10-05 12:11:42 -04:00
parent f59c4509ea
commit 20442f7b9a
5 changed files with 6 additions and 6 deletions

View File

@@ -516,7 +516,7 @@ async fn async_get_debug_argument_at<T, G: FnOnce(&str) -> SendPinBoxFuture<Opti
}
pub fn print_data(data: &[u8], truncate_len: Option<usize>) -> String {
// check is message body is ascii printable
// check if message body is ascii printable
let mut printable = true;
for c in data {
if *c < 32 || *c > 126 {

View File

@@ -40,7 +40,7 @@ impl DHTSchemaDFLT {
) -> bool {
let subkey = subkey as usize;
// Check is subkey is in owner range
// Check if subkey is in owner range
if subkey < (self.o_cnt as usize) {
// Check value data has valid writer
if value_data.writer() == owner {

View File

@@ -65,7 +65,7 @@ impl DHTSchemaSMPL {
) -> bool {
let mut cur_subkey = subkey as usize;
// Check is subkey is in owner range
// Check if subkey is in owner range
if cur_subkey < (self.o_cnt as usize) {
// Check value data has valid writer
if value_data.writer() == owner {