From 7ee49f5e41572d0ea5390e890bbba4cd48a63e7c Mon Sep 17 00:00:00 2001 From: Hikmatulloh Hari Mukti Date: Fri, 2 Oct 2020 22:58:31 +0700 Subject: [PATCH] Resolve #12 doc: misspell on godoc for integer and boolean --- boolean/boolean.go | 4 ++-- integer/integer.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/boolean/boolean.go b/boolean/boolean.go index 2b6a2cf..d236c6c 100644 --- a/boolean/boolean.go +++ b/boolean/boolean.go @@ -15,8 +15,8 @@ var ErrUnsupportedOperator = errors.New("unsupported operator") // ErrInvalidOperationOnFloat is error invalid operation on float var ErrInvalidOperationOnFloat = errors.New("invalid operation on float") -// ErrIntegerDividedByZero occurs when x/y and y equals to 0, Go does not allow integer to be devided by zero -var ErrIntegerDividedByZero = errors.New("integer divide by zero") +// ErrIntegerDividedByZero occurs when x/y and y equals to 0, Go does not allow integer to be divided by zero +var ErrIntegerDividedByZero = errors.New("integer divided by zero") // Visitor is boolean visitor interface type Visitor interface { diff --git a/integer/integer.go b/integer/integer.go index 19a822b..fcbb78d 100644 --- a/integer/integer.go +++ b/integer/integer.go @@ -10,8 +10,8 @@ import ( // ErrUnsupportedOperator is error unsupported operator var ErrUnsupportedOperator = errors.New("unsupported operator") -// ErrIntegerDividedByZero occurs when x/y and y equals to 0, Go does not allow integer to be devided by zero -var ErrIntegerDividedByZero = errors.New("integer divide by zero") +// ErrIntegerDividedByZero occurs when x/y and y equals to 0, Go does not allow integer to be divided by zero +var ErrIntegerDividedByZero = errors.New("integer divided by zero") // Visitor is integer visitor interface type Visitor interface {