mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
Correct typos in Go comments
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
17e60b77e1
commit
36ce3a4a9d
@@ -44,7 +44,7 @@ func (w Whitelist) MarshalJSON() ([]byte, error) {
|
||||
|
||||
// NewWhitelist creates a new Whitelist from zero or more patterns.
|
||||
// An empty patterns list or a pattern with the value 'none' will create
|
||||
// a whitelist that will Accept noone.
|
||||
// a whitelist that will Accept none.
|
||||
func NewWhitelist(patterns ...string) Whitelist {
|
||||
if len(patterns) == 0 {
|
||||
return Whitelist{acceptNone: true}
|
||||
|
Reference in New Issue
Block a user