From 5abb82120bd43535a3136451a8c84fb3469fb3d7 Mon Sep 17 00:00:00 2001 From: Dmitry Chestnykh Date: Tue, 5 Apr 2011 19:55:23 +0200 Subject: [PATCH] Fix docs. --- uniuri.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/uniuri.go b/uniuri.go index f035178..3efada4 100644 --- a/uniuri.go +++ b/uniuri.go @@ -28,20 +28,20 @@ const ( // Standard characters allowed in uniuri string. var StdChars = []byte("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890") -// New returns a new random string with the standard length and standard -// characters. +// New returns a new random string of the standard length, consisting of +// standard characters. func New() string { return NewLenChars(StdLen, StdChars) } -// NewLen returns a new random string with the provided length and standard -// characters. +// NewLen returns a new random string of the provided length, consisting of +// standard characters. func NewLen(length int) string { return NewLenChars(length, StdChars) } -// NewLenChars returns a new random string with the provided length and byte -// slice of allowed characters (maximum 256). +// NewLenChars returns a new random string of the provided length, consisting +// of the provided byte slice of allowed characters (maximum 256). func NewLenChars(length int, chars []byte) string { b := make([]byte, length) if _, err := rand.Reader.Read(b); err != nil {