diff --git a/README.md b/README.md index d0e1e83..b026728 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Tests Status](https://github.com/pbs-data-solutions/prelude-xml-parser/actions/workflows/testing.yml/badge.svg?branch=main&event=push)](https://github.com/pbs-data-solutions/prelude-xml-parser/actions?query=workflow%3ATesting+branch%3Amain+event%3Apush) ![crates.io](https://img.shields.io/crates/v/prelude-xml-parser.svg?color=brightgreen) -Deserialize Prelude EDC native XML files into Rust stucts. Enabling the `python` feature allows +Deserialize Prelude EDC native XML files into Rust structs. Enabling the `python` feature allows deserializing to Python classes with PyO3. ## Supported native files diff --git a/src/errors.rs b/src/errors.rs index f029370..57799cc 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -10,7 +10,7 @@ pub enum Error { #[error("File {:?} is not a XML file.", 0)] InvalidFileType(PathBuf), - /// The file was not found at the specififed path. + /// The file was not found at the specified path. #[error("File was not found at the specified path: {:?}.", 0)] FileNotFound(PathBuf), diff --git a/src/lib.rs b/src/lib.rs index f90ec35..ac4a4da 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -18,7 +18,7 @@ use crate::native::{ use quick_xml::events::{BytesStart, Event}; use quick_xml::Reader; -/// Parses a Prelude native XML file into a `Native` stuct. +/// Parses a Prelude native XML file into a `Native` struct. /// /// # Example /// @@ -435,7 +435,7 @@ pub fn parse_site_native_string(xml_str: &str) -> Result { Ok(native) } -/// Parses a Prelude native subject XML file into a `SubjectNative` stuct. +/// Parses a Prelude native subject XML file into a `SubjectNative` struct. /// /// # Example /// @@ -913,7 +913,7 @@ fn extract_attributes(e: &BytesStart) -> Result, Error> Ok(attrs) } -/// Parses a Prelude native user XML file into a `UserNative` stuct. +/// Parses a Prelude native user XML file into a `UserNative` struct. /// /// # Example /// @@ -1143,7 +1143,7 @@ mod tests { } #[test] - fn test_site_invaid_file_type_error() { + fn test_site_invalid_file_type_error() { let file = Builder::new() .prefix("test") .suffix(".csv") @@ -1164,7 +1164,7 @@ mod tests { } #[test] - fn test_subject_invaid_file_type_error() { + fn test_subject_invalid_file_type_error() { let file = Builder::new() .prefix("test") .suffix(".csv") @@ -1185,7 +1185,7 @@ mod tests { } #[test] - fn test_user_invaid_file_type_error() { + fn test_user_invalid_file_type_error() { let file = Builder::new() .prefix("test") .suffix(".csv")