docs: add docstrings for walker/visitor handlers/rules

This commit is contained in:
James Houlahan
2020-08-18 10:38:27 +02:00
parent a2cf5374b9
commit 642666fa59
4 changed files with 18 additions and 4 deletions

View File

@ -46,7 +46,7 @@ func TestPart(t *testing.T) {
}
for partNumber, wantContType := range wantParts {
part, err := p.Part(getPartNumber(partNumber))
part, err := p.Section(getSectionNumber(partNumber))
require.NoError(t, err)
contType, _, err := part.Header.ContentType()
@ -55,7 +55,7 @@ func TestPart(t *testing.T) {
}
}
func getPartNumber(s string) (part []int) {
func getSectionNumber(s string) (part []int) {
if s == "" {
return
}