mirror of
https://github.com/Blah-IM/blahrs.git
synced 2025-07-01 03:55:33 +00:00
ci,contrib: add typos and pre-commit script
This commit is contained in:
parent
ba9673065a
commit
1c9108610d
4 changed files with 9 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue