Fix arg type in docstring for (*Po).Parse

The Godoc string currently does not match the function's signature.
This commit is contained in:
Frederik Ring 2021-09-19 11:46:13 +02:00 committed by GitHub
parent 7d0f5cde4d
commit 771e397901
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")