Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in documentation and comments #2550

Merged
merged 1 commit into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading