fixing up some spelling errors (#1618)

This commit is contained in:
James Hodgkinson 2023-05-11 08:30:13 +10:00 committed by GitHub
parent 46afc6c7bb
commit 6e559a2eb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -106,6 +106,7 @@ install-tools:
cargo install --path tools/cli --force
.PHONY: codespell
codespell: ## spell-check things.
codespell:
codespell -c \
-L 'crate,unexpect,Pres,pres,ACI,aci,te,ue,aNULL' \

View file

@ -1852,8 +1852,8 @@ impl Entry<EntryReduced, EntryCommitted> {
impl<VALID, STATE> Entry<VALID, STATE> {
/// This internally adds an AVA to the entry. If the entry was newely added, then true is returned.
/// If the value already existed, or was unable to be added, false is returned. Alternately,
/// you can think of this boolean as "if a write occured to the structure", true indicating that
/// a change occured.
/// you can think of this boolean as "if a write occurred to the structure", true indicating that
/// a change occurred.
fn add_ava_int(&mut self, attr: &str, value: Value) -> bool {
if let Some(vs) = self.attrs.get_mut(attr) {
let r = vs.insert_checked(value);