Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
SRv6d committed Nov 20, 2023
1 parent ff1795f commit 3725781
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parser/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fn object_block(input: &str) -> IResult<&str, Object> {
Ok((remaining, attributes.into()))
}

/// Uses the object block parser but allows for optinal padding with server messages or newlines.
/// Uses the object block parser but allows for optional padding with server messages or newlines.
fn padded_object_block(input: &str) -> IResult<&str, Object> {
let (remaining, object) = delimited(
optional_message_or_newlines,
Expand Down Expand Up @@ -285,7 +285,7 @@ mod tests {
);
assert_eq!(
optional_message_or_newlines(concat!(
"% Note: This is a server message preceeding some newlines.\n",
"% Note: This is a server message preceding some newlines.\n",
"\n",
"\n",
))
Expand Down

0 comments on commit 3725781

Please sign in to comment.