aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--skate/slugify.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/skate/slugify.go b/skate/slugify.go
index 5cdc838..d817485 100644
--- a/skate/slugify.go
+++ b/skate/slugify.go
@@ -1,7 +1,6 @@
package skate
import (
- "fmt"
"strings"
)
@@ -10,7 +9,7 @@ func slugifyString(s string) string {
var sb strings.Builder
for _, c := range strings.TrimSpace(strings.ToLower(s)) {
if (c > 96 && c < 123) || (c > 47 && c < 58) || (c == 32) || (c == 9) || (c == 10) {
- fmt.Fprintf(&sb, "%c", c)
+ _, _ = sb.WriteRune(c)
}
}
return strings.Join(strings.Fields(sb.String()), " ")