Skip to content

Commit

Permalink
docs: simplify README example
Browse files Browse the repository at this point in the history
dont need to show both syntaxes
  • Loading branch information
mroth committed Jul 31, 2020
1 parent 6130951 commit 8e20052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func main() {
rand.Seed(time.Now().UTC().UnixNano()) // always seed random!

c := wr.NewChooser(
wr.Choice{Item: "🍒", Weight: 0}, // alternatively: wr.NewChoice('🍒', 0)
wr.Choice{Item: "🍒", Weight: 0},
wr.Choice{Item: "🍋", Weight: 1},
wr.Choice{Item: "🍊", Weight: 1},
wr.Choice{Item: "🍉", Weight: 3},
Expand Down

0 comments on commit 8e20052

Please sign in to comment.