Skip to content

Commit a414da4

Browse files
committed
update readme
1 parent 46ea4cd commit a414da4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ import (
2222
)
2323

2424
func main() {
25-
var g rword.RandomWord
25+
var g rword.GenerateRandom
2626
var err error
2727
// Create a random word generator using saved dict with 370_000+ words.
28-
g, err = rword.NewGenerator()
28+
g, err = rword.New()
2929
if err != nil {
3030
panic(err)
3131
}
@@ -43,7 +43,7 @@ func main() {
4343

4444
// Create a random word generator using your dictionary. Dictionary is a text file, 1 line - 1 word.
4545
// Returns an error, if dictionary is empty.
46-
g2, err := rword.NewGeneratorWithDict("path/to/your/dict")
46+
g2, err := rword.NewWithDict("path/to/your/dict")
4747
if err != nil {
4848
panic(err)
4949
}

0 commit comments

Comments
 (0)