diff options
author | Noman <noman@noman.land> | 2017-08-21 17:22:00 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-08-21 17:22:00 +0800 |
commit | e311bb520a1869e42ed30eb1487a751fa30cd0b4 (patch) | |
tree | 9d102f2efe300f0b0fa25032e6fd1b02af665cb3 | |
parent | 1ab3e306983807c7d37f66a60dd92cee02269f6f (diff) | |
download | dexon-e311bb520a1869e42ed30eb1487a751fa30cd0b4.tar dexon-e311bb520a1869e42ed30eb1487a751fa30cd0b4.tar.gz dexon-e311bb520a1869e42ed30eb1487a751fa30cd0b4.tar.bz2 dexon-e311bb520a1869e42ed30eb1487a751fa30cd0b4.tar.lz dexon-e311bb520a1869e42ed30eb1487a751fa30cd0b4.tar.xz dexon-e311bb520a1869e42ed30eb1487a751fa30cd0b4.tar.zst dexon-e311bb520a1869e42ed30eb1487a751fa30cd0b4.zip |
whisper: Fix spelling and grammar in error (#15009)
* whisper: Fix spelling and grammar in error
* whisper: Fix grammar in comments
-rw-r--r-- | whisper/whisperv5/api.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/whisper/whisperv5/api.go b/whisper/whisperv5/api.go index 5b84b99eb..ec22f0d1d 100644 --- a/whisper/whisperv5/api.go +++ b/whisper/whisperv5/api.go @@ -37,7 +37,7 @@ const ( ) var ( - ErrSymAsym = errors.New("specify either a symetric or a asymmetric key") + ErrSymAsym = errors.New("specify either a symmetric or an asymmetric key") ErrInvalidSymmetricKey = errors.New("invalid symmetric key") ErrInvalidPublicKey = errors.New("invalid public key") ErrInvalidSigningPubKey = errors.New("invalid signing public key") @@ -243,7 +243,7 @@ func (api *PublicWhisperAPI) Post(ctx context.Context, req NewMessage) (bool, er err error ) - // user must specify either a symmetric or a asymmetric key + // user must specify either a symmetric or an asymmetric key if (symKeyGiven && pubKeyGiven) || (!symKeyGiven && !pubKeyGiven) { return false, ErrSymAsym } @@ -344,7 +344,7 @@ func (api *PublicWhisperAPI) Messages(ctx context.Context, crit Criteria) (*rpc. return nil, rpc.ErrNotificationsUnsupported } - // user must specify either a symmetric or a asymmetric key + // user must specify either a symmetric or an asymmetric key if (symKeyGiven && pubKeyGiven) || (!symKeyGiven && !pubKeyGiven) { return nil, ErrSymAsym } @@ -534,7 +534,7 @@ func (api *PublicWhisperAPI) NewMessageFilter(req Criteria) (string, error) { err error ) - // user must specify either a symmetric or a asymmetric key + // user must specify either a symmetric or an asymmetric key if (symKeyGiven && asymKeyGiven) || (!symKeyGiven && !asymKeyGiven) { return "", ErrSymAsym } |