updated docs

This commit is contained in:
Radu Ioan Fericean
2013-06-18 12:28:44 +03:00
parent 61ec52c951
commit a2cae467fe
2 changed files with 4 additions and 3 deletions

View File

@@ -50,8 +50,8 @@ type AttrDestination struct {
Prefixes []string
}
func (self *Apier) GetDestination(tag string, reply *AttrDestination) error {
if dst, err := self.Getter.GetDestination(tag); err != nil {
func (self *Apier) GetDestination(attr *AttrDestination, reply *AttrDestination) error {
if dst, err := self.Getter.GetDestination(attr.Id); err != nil {
return errors.New(utils.ERR_NOT_FOUND)
} else {
reply.Id = dst.Id