Skip to content

Commit

Permalink
Merge pull request #2550 from Pricstas/fix/typos
Browse files Browse the repository at this point in the history
Fix typos in documentation and comments
  • Loading branch information
maqi authored Dec 20, 2024
2 parents 3f82e44 + 35a6ea7 commit ddc8906
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ant-bootstrap/src/cache_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ impl BootstrapCacheStore {
&self.config
}

/// Create a empty CacheStore with the given configuration
/// Create an empty CacheStore with the given configuration
pub fn new(config: BootstrapCacheConfig) -> Result<Self> {
info!("Creating new CacheStore with config: {:?}", config);
let cache_path = config.cache_file_path.clone();
Expand All @@ -172,7 +172,7 @@ impl BootstrapCacheStore {
Ok(store)
}

/// Create a empty CacheStore from the given peers argument.
/// Create an empty CacheStore from the given peers argument.
/// This also modifies the cfg if provided based on the PeersArgs.
/// And also performs some actions based on the PeersArgs.
///
Expand Down
4 changes: 2 additions & 2 deletions ant-bootstrap/src/contacts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const MAINNET_CONTACTS: &[&str] = &[
const FETCH_TIMEOUT_SECS: u64 = 30;
/// Maximum number of endpoints to fetch at a time
const MAX_CONCURRENT_FETCHES: usize = 3;
/// The max number of retries for a endpoint on failure.
/// The max number of retries for an endpoint on failure.
const MAX_RETRIES_ON_FETCH_FAILURE: usize = 3;

/// Discovers initial peers from a list of endpoints
Expand Down Expand Up @@ -228,7 +228,7 @@ impl ContactsFetcher {
Ok(bootstrap_addresses)
}

/// Try to parse a response from a endpoint
/// Try to parse a response from an endpoint
fn try_parse_response(response: &str, ignore_peer_id: bool) -> Result<Vec<Multiaddr>> {
match serde_json::from_str::<CacheData>(response) {
Ok(json_endpoints) => {
Expand Down
2 changes: 1 addition & 1 deletion ant-protocol/src/storage/scratchpad.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use serde::{Deserialize, Serialize};

use xor_name::XorName;

/// Scratchpad, an mutable address for encrypted data
/// Scratchpad, a mutable address for encrypted data
#[derive(
Hash, Eq, PartialEq, PartialOrd, Ord, Clone, custom_debug::Debug, Serialize, Deserialize,
)]
Expand Down
2 changes: 1 addition & 1 deletion node-launchpad/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use ratatui::{

/// Error popup is a popup that is used to display error messages to the user.
///
/// It accepts a title, a message and a error message.
/// It accepts a title, a message and an error message.
/// Handles key events to hide the popup (Enter and Esc keys).
///
/// How to use:
Expand Down

0 comments on commit ddc8906

Please sign in to comment.