From 7b166cd73c0c3d5dfa69d996a5c7d5a2f6fd2436 Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Sat, 19 Feb 2011 10:41:57 -0500 Subject: [PATCH] crypto/openpgp/packet: comment typo fix. R=rsc CC=golang-dev https://golang.org/cl/4178065 --- src/pkg/crypto/openpgp/packet/encrypted_key.go | 4 ++-- src/pkg/crypto/openpgp/packet/literal.go | 4 ++-- src/pkg/crypto/openpgp/packet/packet.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pkg/crypto/openpgp/packet/encrypted_key.go b/src/pkg/crypto/openpgp/packet/encrypted_key.go index 4a926cdb110..b11a9b8301a 100644 --- a/src/pkg/crypto/openpgp/packet/encrypted_key.go +++ b/src/pkg/crypto/openpgp/packet/encrypted_key.go @@ -20,8 +20,8 @@ type EncryptedKey struct { KeyId uint64 Algo PublicKeyAlgorithm Encrypted []byte - CipherFunc CipherFunction // only valid after a sucessful Decrypt - Key []byte // only valid after a sucessful Decrypt + CipherFunc CipherFunction // only valid after a successful Decrypt + Key []byte // only valid after a successful Decrypt } func (e *EncryptedKey) parse(r io.Reader) (err os.Error) { diff --git a/src/pkg/crypto/openpgp/packet/literal.go b/src/pkg/crypto/openpgp/packet/literal.go index 5f72d6a2cd3..04f50e53e13 100644 --- a/src/pkg/crypto/openpgp/packet/literal.go +++ b/src/pkg/crypto/openpgp/packet/literal.go @@ -14,11 +14,11 @@ import ( type LiteralData struct { IsBinary bool FileName string - Time uint32 // Unix epoc time. Either creation time or modification time. 0 means undefined. + Time uint32 // Unix epoch time. Either creation time or modification time. 0 means undefined. Body io.Reader } -// ForEyesOnly return whether the contents of the LiteralData have been marked +// ForEyesOnly returns whether the contents of the LiteralData have been marked // as especially sensitive. func (l *LiteralData) ForEyesOnly() bool { return l.FileName == "_CONSOLE" diff --git a/src/pkg/crypto/openpgp/packet/packet.go b/src/pkg/crypto/openpgp/packet/packet.go index 80e25e250f2..be8ce75f5f1 100644 --- a/src/pkg/crypto/openpgp/packet/packet.go +++ b/src/pkg/crypto/openpgp/packet/packet.go @@ -300,7 +300,7 @@ type SignatureType uint8 const ( SigTypeBinary SignatureType = 0 - SigTypeText SignatureType = 1 + SigTypeText = 1 SigTypeGenericCert = 0x10 SigTypePersonaCert = 0x11 SigTypeCasualCert = 0x12