From 67adc0fbce86e72af4e12541613d240c63f74d7c Mon Sep 17 00:00:00 2001 From: Angus Champion de Crespigny Date: Sun, 24 Jun 2018 14:59:42 -0400 Subject: [PATCH] Updated capitalization of cwtchPeer in comments --- peer/cwtch_peer.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/peer/cwtch_peer.go b/peer/cwtch_peer.go index a0d70f5..03eb857 100644 --- a/peer/cwtch_peer.go +++ b/peer/cwtch_peer.go @@ -144,7 +144,7 @@ func (cp *cwtchPeer) setup() { } } -// NewCwtchPeer creates and returns a new CwtchPeer with the given name. +// NewCwtchPeer creates and returns a new cwtchPeer with the given name. func NewCwtchPeer(name string, password string) CwtchPeerInterface { cp := new(cwtchPeer) cp.Profile = model.GenerateNewProfile(name) @@ -155,7 +155,7 @@ func NewCwtchPeer(name string, password string) CwtchPeerInterface { return cp } -// Save saves the CwtchPeer profile state to a file. +// Save saves the cwtchPeer profile state to a file. func (cp *cwtchPeer) Save(profilefile string) error { cp.mutex.Lock() encryptedbytes := EncryptProfile(cp, cp.password) @@ -166,7 +166,7 @@ func (cp *cwtchPeer) Save(profilefile string) error { return err } -// LoadCwtchPeer loads an existing CwtchPeer from a file. CHECK METHOD RETURN +// LoadCwtchPeer loads an existing CwtchPeer from a file. func LoadCwtchPeer(profilefile string, password string) (*cwtchPeer, error) { encryptedbytes, _ := ioutil.ReadFile(profilefile)