summaryrefslogtreecommitdiff
path: root/usr/gri/gosrc/utils.go
diff options
context:
space:
mode:
Diffstat (limited to 'usr/gri/gosrc/utils.go')
-rw-r--r--usr/gri/gosrc/utils.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/gri/gosrc/utils.go b/usr/gri/gosrc/utils.go
index 57d2eb546..0764a2f8c 100644
--- a/usr/gri/gosrc/utils.go
+++ b/usr/gri/gosrc/utils.go
@@ -10,7 +10,7 @@ export func BaseName(s string) string {
i := len(s) - 1;
for i >= 0 && s[i] != '/' {
if s[i] > 128 {
- panic "non-ASCII string"
+ panic("non-ASCII string");
}
i--;
}
@@ -38,7 +38,7 @@ export func IntToString(x, base int) string {
if x < 0 {
x = -x;
if x < 0 {
- panic "smallest int not handled";
+ panic("smallest int not handled");
}
} else if x == 0 {
return "0";