Fix arg type in docstring for (*Po).Parse
The Godoc string currently does not match the function's signature.
This commit is contained in:
parent
7d0f5cde4d
commit
771e397901
1 changed files with 1 additions and 1 deletions
2
po.go
2
po.go
|
@ -126,7 +126,7 @@ func (po *Po) ParseFile(f string) {
|
|||
po.Parse(data)
|
||||
}
|
||||
|
||||
// Parse loads the translations specified in the provided string (str)
|
||||
// Parse loads the translations specified in the provided byte slice (buf)
|
||||
func (po *Po) Parse(buf []byte) {
|
||||
if po.domain == nil {
|
||||
panic("NewPo() was not used to instantiate this object")
|
||||
|
|
Loading…
Reference in a new issue