From e95404bfc5200e97576441e6cb216b11ad4da447 Mon Sep 17 00:00:00 2001 From: CodeLingo Bot Date: Tue, 19 Mar 2019 17:06:19 +1300 Subject: [PATCH] Fix function comments based on best practices from Effective Go Signed-off-by: CodeLingo Bot --- totp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/totp.go b/totp.go index f8e41b1..1461c2c 100644 --- a/totp.go +++ b/totp.go @@ -56,7 +56,7 @@ func (otp *TOTP) OTPCounter() uint64 { return otp.otpCounter(uint64(time.Now().Unix())) } -// NewOTP takes a new key, a starting time, a step, the number of +// NewTOTP takes a new key, a starting time, a step, the number of // digits of output (typically 6 or 8) and the hash algorithm to // use, and builds a new OTP. func NewTOTP(key []byte, start uint64, step uint64, digits int, algo crypto.Hash) *TOTP {