Skip to content

Commit 9c6c889

Browse files
authored
Fix Typos in Documentation Comments (#1160)
Description: This pull request corrects minor spelling errors in documentation comments within the codebase. Specifically, it fixes the words "successful" and "consists" in the files `src/sudoers/policy.rs` and `src/sudoers/tokens.rs`, respectively. No functional code changes were made; only documentation comments were updated for clarity and correctness.
1 parent e64c6a8 commit 9c6c889

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/sudoers/policy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use crate::common::{
66
};
77
use crate::sudoers::ast::{ExecControl, Tag};
88
use crate::system::{time::Duration, Hostname, User};
9-
/// Data types and traits that represent what the "terms and conditions" are after a succesful
9+
/// Data types and traits that represent what the "terms and conditions" are after a successful
1010
/// permission check.
1111
///
1212
/// The trait definitions can be part of some global crate in the future, if we support more

src/sudoers/tokens.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ impl<T: Many> Many for Meta<T> {
145145
const LIMIT: usize = T::LIMIT;
146146
}
147147

148-
/// An identifier that consits of only uppercase characters.
148+
/// An identifier that consists of only uppercase characters.
149149
pub struct AliasName(pub String);
150150

151151
impl Token for AliasName {

0 commit comments

Comments
 (0)