From e5734e34e91b6febaae16dc86535d101a2f91cf6 Mon Sep 17 00:00:00 2001 From: Matthias Rampke Date: Wed, 10 Oct 2018 21:31:51 +0000 Subject: [PATCH] Copy edit comments in fsm/formatter Fixing a typo and language. Signed-off-by: Matthias Rampke --- pkg/mapper/fsm/formatter.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/mapper/fsm/formatter.go b/pkg/mapper/fsm/formatter.go index 8ae0926..567bbc2 100644 --- a/pkg/mapper/fsm/formatter.go +++ b/pkg/mapper/fsm/formatter.go @@ -30,8 +30,8 @@ type TemplateFormatter struct { fmtString string } -// NewTemplateFormatter instantialize a TemplateFormatter -// from given template string and the maxium amount of captures. +// NewTemplateFormatter instantiates a TemplateFormatter +// from given template string and the maximum amount of captures. func NewTemplateFormatter(template string, captureCount int) *TemplateFormatter { matches := templateReplaceCaptureRE.FindAllStringSubmatch(template, -1) if len(matches) == 0 { @@ -60,8 +60,8 @@ func NewTemplateFormatter(template string, captureCount int) *TemplateFormatter } } -// Format accepts a list containing captured strings and return the formatted string -// using the template stored in current TemplateFormatter. +// Format accepts a list containing captured strings and returns the formatted +// string using the template stored in current TemplateFormatter. func (formatter *TemplateFormatter) Format(captures []string) string { if formatter.captureCount == 0 { // no label substitution, keep as it is