Skip to content

Commit

Permalink
chore: introduce crate-ci/typos (#2430)
Browse files Browse the repository at this point in the history
## Description

Avoid having typos in the codebase.

Closes #2396

## Breaking Changes

No.

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## Change checklist

- [ ] Self-review.
- [ ] Documentation updates if relevant.
- [ ] Tests if relevant.
- [ ] All breaking changes documented.
  • Loading branch information
azzamsa authored Jun 30, 2024
1 parent 08fe6f3 commit b97e407
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ impl DefaultAuthorStorage {
}
}

/// Peristent default author for a docs engine.
/// Persistent default author for a docs engine.
#[derive(Debug)]
pub struct DefaultAuthor {
value: RwLock<AuthorId>,
Expand Down
4 changes: 2 additions & 2 deletions src/store/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ impl Store {
})
}

/// Delte an author.
/// Delete an author.
pub fn delete_author(&mut self, author: AuthorId) -> Result<()> {
self.modify(|tables| {
tables.authors.remove(author.as_bytes())?;
Expand Down Expand Up @@ -881,7 +881,7 @@ impl Iterator for ParentIterator {
/// a database snapshot open until it is dropped.
///
/// Also, this represents a snapshot of the database at the time of creation.
/// It nees a copy of a redb::ReadOnlyTable to be self-contained.
/// It needs a copy of a redb::ReadOnlyTable to be self-contained.
#[derive(derive_more::Debug)]
pub struct ContentHashesIterator {
#[debug(skip)]
Expand Down

0 comments on commit b97e407

Please sign in to comment.