Skip to content

Commit e59e9d7

Browse files
authored
[codespell] Fix typos. (#303)
1 parent cd85f0a commit e59e9d7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
## Features
3131
- fast and precise MIME type and file extension detection
3232
- long list of [supported MIME types](supported_mimes.md)
33-
- posibility to [extend](https://pkg.go.dev/github.com/gabriel-vasile/mimetype#example-package-Extend) with other file formats
33+
- possibility to [extend](https://pkg.go.dev/github.com/gabriel-vasile/mimetype#example-package-Extend) with other file formats
3434
- common file formats are prioritized
3535
- [text vs. binary files differentiation](https://pkg.go.dev/github.com/gabriel-vasile/mimetype#example-package-TextVsBinary)
3636
- safe for concurrent usage

mime.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func (m *MIME) clone(ps map[string]string) *MIME {
139139
}
140140

141141
// cloneHierarchy creates a clone of m and all its ancestors. The optional MIME
142-
// parametes are set on the last child of the hierarchy.
142+
// parameters are set on the last child of the hierarchy.
143143
func (m *MIME) cloneHierarchy(ps map[string]string) *MIME {
144144
ret := m.clone(ps)
145145
lastChild := ret

tree.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var root = newMIME("application/octet-stream", "",
3434
// errMIME is same as root but it does not require locking.
3535
var errMIME = newMIME("application/octet-stream", "", func([]byte, uint32) bool { return false })
3636

37-
// mu guards access to the root MIME tree. Access to root must be synchonized with this lock.
37+
// mu guards access to the root MIME tree. Access to root must be synchronized with this lock.
3838
var mu = &sync.RWMutex{}
3939

4040
// The list of nodes appended to the root node.

0 commit comments

Comments
 (0)