ci,contrib: add typos and pre-commit script

This commit is contained in:
oxalica 2024-10-13 04:30:53 -04:00
parent ba9673065a
commit 1c9108610d
4 changed files with 9 additions and 1 deletions

View file

@ -38,7 +38,7 @@ impl IdExt for Id {
last_id.set(id);
Id(id)
} else {
// Otherwise, try to increse the trailing counter.
// Otherwise, try to increase the trailing counter.
assert!(prev < (1 << 16), "id counter overflow");
last_id.set(prev + 1);
Id(prev + 1)