Clarified Add method's comments

This commit is contained in:
2024-10-20 14:31:54 +02:00
parent 8ce7d54d00
commit ae24db0c08
5 changed files with 28 additions and 21 deletions

View File

@@ -21,7 +21,8 @@ func NewPerson(name string) *Person {
}
}
// AddExtension adds the Extension to the Person. It returns an int.
// AddExtension adds the Extension to the Person. It returns its index as an
// int.
func (p *Person) AddExtension(e *ExtensionElement) int {
return addToSlice(&p.Extensions, e)
}