Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #25 from jayvdb/typos
Browse files Browse the repository at this point in the history
fix typos
  • Loading branch information
dtolnay committed Feb 15, 2024
2 parents 63131f5 + b3496ce commit 7440d58
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/bin/run-emitter-test-suite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub(crate) unsafe fn unsafe_main(
let mut emitter = MaybeUninit::<yaml_emitter_t>::uninit();
let emitter = emitter.as_mut_ptr();
if yaml_emitter_initialize(emitter).fail {
return Err("Could not initalize the emitter object".into());
return Err("Could not initialize the emitter object".into());
}

unsafe fn write_to_stdio(data: *mut c_void, buffer: *mut u8, size: u64) -> i32 {
Expand Down
2 changes: 1 addition & 1 deletion src/dumper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pub unsafe fn yaml_emitter_close(emitter: *mut yaml_emitter_t) -> Success {

/// Emit a YAML document.
///
/// The documen object may be generated using the yaml_parser_load() function or
/// The document object may be generated using the yaml_parser_load() function or
/// the yaml_document_initialize() function. The emitter takes the
/// responsibility for the document object and destroys its content after it is
/// emitted. The document object is destroyed even if the function fails.
Expand Down
2 changes: 1 addition & 1 deletion src/scanner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2307,7 +2307,7 @@ unsafe fn yaml_parser_scan_flow_scalar(
b"while parsing a quoted scalar\0" as *const u8
as *const libc::c_char,
start_mark,
b"did not find expected hexdecimal number\0" as *const u8
b"did not find expected hexadecimal number\0" as *const u8
as *const libc::c_char,
);
current_block = 8114179180390253173;
Expand Down
6 changes: 3 additions & 3 deletions src/yaml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ pub struct yaml_parser_t {
pub problem: *const libc::c_char,
#[cfg(not(doc))]
pub(crate) problem: *const libc::c_char,
/// The byte about which the problem occured.
/// The byte about which the problem occurred.
#[cfg(doc)]
pub problem_offset: size_t,
#[cfg(not(doc))]
Expand Down Expand Up @@ -937,7 +937,7 @@ pub struct yaml_parser_t_prefix {
pub error: yaml_error_type_t,
/// Error description.
pub problem: *const libc::c_char,
/// The byte about which the problem occured.
/// The byte about which the problem occurred.
pub problem_offset: size_t,
/// The problematic value (-1 is none).
pub problem_value: libc::c_int,
Expand Down Expand Up @@ -1198,7 +1198,7 @@ pub(crate) struct unnamed_yaml_emitter_t_scalar_data {
pub length: size_t,
/// Does the scalar contain line breaks?
pub multiline: bool,
/// Can the scalar be expessed in the flow plain style?
/// Can the scalar be expressed in the flow plain style?
pub flow_plain_allowed: bool,
/// Can the scalar be expressed in the block plain style?
pub block_plain_allowed: bool,
Expand Down

0 comments on commit 7440d58

Please sign in to comment.