From ba69a564f2d249f58197f52b7937e99ac70f2751 Mon Sep 17 00:00:00 2001 From: Ryan Guest Date: Mon, 3 Apr 2017 22:47:18 -0700 Subject: [PATCH] Fix a couple small typos --- barchart.go | 2 +- helper.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/barchart.go b/barchart.go index 6560c8b..d960797 100644 --- a/barchart.go +++ b/barchart.go @@ -62,7 +62,7 @@ func (bc *BarChart) layout() { } //bc.max = bc.Data[0] // what if Data is nil? Sometimes when bar graph is nill it produces panic with panic: runtime error: index out of range - // Asign a negative value to get maxvalue auto-populates + // Assign a negative value to get maxvalue auto-populates if bc.max == 0 { bc.max = -1 } diff --git a/helper.go b/helper.go index 18a6770..5a71afb 100644 --- a/helper.go +++ b/helper.go @@ -100,7 +100,7 @@ func charWidth(ch rune) int { var whiteSpaceRegex = regexp.MustCompile(`\s`) -// StringToAttribute converts text to a termui attribute. You may specifiy more +// StringToAttribute converts text to a termui attribute. You may specify more // then one attribute like that: "BLACK, BOLD, ...". All whitespaces // are ignored. func StringToAttribute(text string) Attribute {