summaryrefslogtreecommitdiff
path: root/crates/tor-guardmgr/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/tor-guardmgr/src')
-rw-r--r--crates/tor-guardmgr/src/sample/candidate.rs2
-rw-r--r--crates/tor-guardmgr/src/vanguards.rs2
-rw-r--r--crates/tor-guardmgr/src/vanguards/set.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/crates/tor-guardmgr/src/sample/candidate.rs b/crates/tor-guardmgr/src/sample/candidate.rs
index 3473ae8fa..e705c4bb0 100644
--- a/crates/tor-guardmgr/src/sample/candidate.rs
+++ b/crates/tor-guardmgr/src/sample/candidate.rs
@@ -67,7 +67,7 @@ pub(crate) enum CandidateStatus<T> {
pub(crate) struct Candidate {
/// True if the candidate is not currently disabled for use as a guard.
///
- /// (To be enabled, it must be in the lastest directory, with the Fast,
+ /// (To be enabled, it must be in the last directory, with the Fast,
/// Stable, and Guard flags.)
pub(crate) listed_as_guard: bool,
/// True if the candidate can be used as a directory cache.
diff --git a/crates/tor-guardmgr/src/vanguards.rs b/crates/tor-guardmgr/src/vanguards.rs
index 2ab03f949..efa89223e 100644
--- a/crates/tor-guardmgr/src/vanguards.rs
+++ b/crates/tor-guardmgr/src/vanguards.rs
@@ -78,7 +78,7 @@ struct Inner {
/// If we later switch to "full" vanguards, those previous changes still
/// won't be persisted to storage: we only flush to storage if the
/// [`VanguardSets`] change *while* we are in "full" mode
- /// (changing the [`VanguardMode`] does not consistute a change in the `VanguardSets`).
+ /// (changing the [`VanguardMode`] does not constitute a change in the `VanguardSets`).
//
// TODO HS-VANGUARDS: the correct behaviour here might be to never switch back to lite mode
// after enabling full vanguards. If we do that, persisting the vanguard sets will be simpler,
diff --git a/crates/tor-guardmgr/src/vanguards/set.rs b/crates/tor-guardmgr/src/vanguards/set.rs
index 366b6a374..c983957a3 100644
--- a/crates/tor-guardmgr/src/vanguards/set.rs
+++ b/crates/tor-guardmgr/src/vanguards/set.rs
@@ -375,7 +375,7 @@ impl From<&VanguardSet> for RelayIdSet {
}
}
-// Some acccessors we need in the VanguardMgr tests.
+// Some accessors we need in the VanguardMgr tests.
#[cfg(test)]
derive_deftly_adhoc! {
VanguardSets expect items: