From 28e474f91fa6be4a644ba2d6c2dde06b38aabd13 Mon Sep 17 00:00:00 2001 From: jim teeuwen Date: Fri, 3 Dec 2010 15:22:39 +0100 Subject: [PATCH] Fix for Go release.2010-02-12 --- xmlx/entitymap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmlx/entitymap.go b/xmlx/entitymap.go index d9e8973..4f6124f 100644 --- a/xmlx/entitymap.go +++ b/xmlx/entitymap.go @@ -49,7 +49,7 @@ func EntityToUtf8(entity string) string { } var arr [4]byte - if size := utf8.EncodeRune(num, arr[0:]); size == 0 { + if size := utf8.EncodeRune(arr[0:], num); size == 0 { return "&#" + entity + ";" }