Skip to content

Commit e9b6b0f

Browse files
authored
Fix Typos in Comments and Documentation (#1162)
Description: This pull request corrects minor typographical errors in the codebase: - In `src/pam/mod.rs`, the word "reponsible" was corrected to "responsible" in a safety comment. - In `src/sudoers/ast.rs`, the word "definiton" was corrected to "definition" in the grammar documentation.
1 parent 9c6c889 commit e9b6b0f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/pam/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ impl PamContext {
355355
curr_env = unsafe { curr_env.offset(1) };
356356
}
357357

358-
// SAFETY: `envs` itself was obtained by malloc(), so we are reponsible for freeing it.
358+
// SAFETY: `envs` itself was obtained by malloc(), so we are responsible for freeing it.
359359
unsafe { libc::free(envs.cast()) };
360360

361361
Ok(res)

src/sudoers/ast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ fn parse_include(stream: &mut CharStream) -> Parsed<Sudo> {
637637

638638
/// grammar:
639639
/// ```text
640-
/// name = definition [ : name = definiton [ : ... ] ]
640+
/// name = definition [ : name = definition [ : ... ] ]
641641
/// ```
642642
///
643643
impl<T> Parse for Def<T>

0 commit comments

Comments
 (0)