Fix some minor godoc problems

This commit is contained in:
Michael Gaffney committed 2021-05-12 11:43:03 -04:00
1 parent 1ec0ba0a93
commit b8831b16f1
1 file changed
+3 -3
+3 -3
View File
@@ -52,7 +52,7 @@ var (
_ db.VetForWriter = (*Connection)(nil)
)
// New creates a new in memory session. No options
// NewConnection creates a new in memory connection. No options
// are currently supported.
func NewConnection(sessionID, clientTcpAddress string, clientTcpPort uint32, endpointTcpAddr string, endpointTcpPort uint32, _ ...Option) (*Connection, error) {
const op = "session.NewConnection"
@@ -69,12 +69,12 @@ func NewConnection(sessionID, clientTcpAddress string, clientTcpPort uint32, end
return &c, nil
}
// AllocConnection will allocate a Session
// AllocConnection will allocate a connection.
func AllocConnection() Connection {
return Connection{}
}
// Clone creates a clone of the Session
// Clone creates a clone of the connection.
func (c *Connection) Clone() interface{} {
clone := &Connection{
PublicId: c.PublicId,