Skip to content

Commit

Permalink
Merge pull request #6 from SergPonomar/fix-typo
Browse files Browse the repository at this point in the history
Fix typo in 'set record' function name
  • Loading branch information
kenkoooo authored Dec 2, 2023
2 parents 95db309 + 485b47d commit b583ce6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/struct_loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ where
}

let records = load_named_records::<T>(&self.filename, &self.base_dir, dependencies)?;
self.set_recoards(records)?;
self.set_records(records)?;

Ok(self)
}
Expand All @@ -100,7 +100,7 @@ where
self.get_records()
}

fn set_recoards(&mut self, named_records: Dict<T>) -> Result<()> {
fn set_records(&mut self, named_records: Dict<T>) -> Result<()> {
if self.named_records.is_some() {
return Err(anyhow::anyhow!(
"filename : {} the records have been loaded already",
Expand Down

0 comments on commit b583ce6

Please sign in to comment.