Merge pull request #55 from m90/patch-1

Fix arg type in docstring for (*Po).Parse
This commit is contained in:
Leonel Quinteros 2021-09-26 11:00:56 -03:00 committed by GitHub
commit 5e27e8b5e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
po.go
View file

@ -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")