Found via `typos --hidden --format brief`
This commit is contained in:
Kian-Meng Ang authored and GitHub committed 2025-06-14 09:47:32 +10:00
1 parent 249264b4cd
commit b76d2546e1
4 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -381,7 +381,7 @@ func makeCollator(localeStr string, opts ...collate.Option) (*collate.Collator,
// This function deletes entries from a map if the key is either the given path
// or a subpath of it.
// This is useful for clearing cached data when a directory is moved or deleted.
func deletePathRecusrive[T any](m map[string]T, path string) {
func deletePathRecursive[T any](m map[string]T, path string) {
delete(m, path)
prefix := path + string(filepath.Separator)
for k := range m {