Skip to content

Commit f9f340e

Browse files
authored
Merge pull request #173 from pbs-data-solutions/typo
Fix typos
2 parents 845f4ec + fc1b275 commit f9f340e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![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)
44
![crates.io](https://img.shields.io/crates/v/prelude-xml-parser.svg?color=brightgreen)
55

6-
Deserialize Prelude EDC native XML files into Rust stucts. Enabling the `python` feature allows
6+
Deserialize Prelude EDC native XML files into Rust structs. Enabling the `python` feature allows
77
deserializing to Python classes with PyO3.
88

99
## Supported native files

src/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub enum Error {
1010
#[error("File {:?} is not a XML file.", 0)]
1111
InvalidFileType(PathBuf),
1212

13-
/// The file was not found at the specififed path.
13+
/// The file was not found at the specified path.
1414
#[error("File was not found at the specified path: {:?}.", 0)]
1515
FileNotFound(PathBuf),
1616

src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use crate::native::{
1818
use quick_xml::events::{BytesStart, Event};
1919
use quick_xml::Reader;
2020

21-
/// Parses a Prelude native XML file into a `Native` stuct.
21+
/// Parses a Prelude native XML file into a `Native` struct.
2222
///
2323
/// # Example
2424
///
@@ -435,7 +435,7 @@ pub fn parse_site_native_string(xml_str: &str) -> Result<SiteNative, Error> {
435435
Ok(native)
436436
}
437437

438-
/// Parses a Prelude native subject XML file into a `SubjectNative` stuct.
438+
/// Parses a Prelude native subject XML file into a `SubjectNative` struct.
439439
///
440440
/// # Example
441441
///
@@ -913,7 +913,7 @@ fn extract_attributes(e: &BytesStart) -> Result<HashMap<String, String>, Error>
913913
Ok(attrs)
914914
}
915915

916-
/// Parses a Prelude native user XML file into a `UserNative` stuct.
916+
/// Parses a Prelude native user XML file into a `UserNative` struct.
917917
///
918918
/// # Example
919919
///
@@ -1143,7 +1143,7 @@ mod tests {
11431143
}
11441144

11451145
#[test]
1146-
fn test_site_invaid_file_type_error() {
1146+
fn test_site_invalid_file_type_error() {
11471147
let file = Builder::new()
11481148
.prefix("test")
11491149
.suffix(".csv")
@@ -1164,7 +1164,7 @@ mod tests {
11641164
}
11651165

11661166
#[test]
1167-
fn test_subject_invaid_file_type_error() {
1167+
fn test_subject_invalid_file_type_error() {
11681168
let file = Builder::new()
11691169
.prefix("test")
11701170
.suffix(".csv")
@@ -1185,7 +1185,7 @@ mod tests {
11851185
}
11861186

11871187
#[test]
1188-
fn test_user_invaid_file_type_error() {
1188+
fn test_user_invalid_file_type_error() {
11891189
let file = Builder::new()
11901190
.prefix("test")
11911191
.suffix(".csv")

0 commit comments

Comments
 (0)