|
@@ -24,7 +24,7 @@ func IsShortID(id string) bool {
|
|
|
// TruncateID returns a shorthand version of a string identifier for convenience.
|
|
|
// A collision with other shorthands is very unlikely, but possible.
|
|
|
// In case of a collision a lookup with TruncIndex.Get() will fail, and the caller
|
|
|
-// will need to use a langer prefix, or the full-length Id.
|
|
|
+// will need to use a longer prefix, or the full-length Id.
|
|
|
func TruncateID(id string) string {
|
|
|
if i := strings.IndexRune(id, ':'); i >= 0 {
|
|
|
id = id[i+1:]
|
|
@@ -57,7 +57,7 @@ func generateID(crypto bool) string {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-// GenerateRandomID returns an unique id.
|
|
|
+// GenerateRandomID returns a unique id.
|
|
|
func GenerateRandomID() string {
|
|
|
return generateID(true)
|
|
|
|