gofix error

This commit is contained in:
jim teeuwen 2011-11-02 16:50:45 +01:00
parent 0ecfd7fd99
commit 4b31ea924d
4 changed files with 16 additions and 17 deletions

View file

@ -5,7 +5,6 @@
package xmlx
import (
"os"
"xml"
"bytes"
"fmt"
@ -45,7 +44,7 @@ func NewNode(tid byte) *Node {
// This wraps the standard xml.Unmarshal function and supplies this particular
// node as the content to be unmarshalled.
func (this *Node) Unmarshal(obj interface{}) os.Error {
func (this *Node) Unmarshal(obj interface{}) error {
return xml.Unmarshal(bytes.NewBuffer(this.Bytes()), obj)
}