Fixing the SparkLine demo.

This commit is contained in:
Jakub Sobon 2018-06-22 16:33:05 -04:00
parent f4d2edc3f9
commit 4da5097d66
No known key found for this signature in database
GPG Key ID: F2451A77FB05D3B7
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ func playSparkLine(ctx context.Context, sl *sparkline.SparkLine, delay time.Dura
select {
case <-ticker.C:
v := int(rand.Int31n(max + 1))
if err := sl.Add(v); err != nil {
if err := sl.Add([]int{v}); err != nil {
panic(err)
}