// UpdateReg updates an existing registration.
// It returns an updated account copy. The provided account is not modified.
UpdateReg updates an existing registration.
It returns an updated account copy. The provided account is not modified.
// UpdateReg updates an existing registration . // It returns an updated account copy . The provided account is not modified .
func (c *Client) UpdateReg(ctx context.Context, a *Account) (*Account, error) {
	uri := a.URI
	a, err := c.doReg(ctx, uri, "reg", a)
	if err != nil {
		return nil, err
	}
	a.URI = uri
	return a, nil
}
func ( c * Client ) UpdateReg ( ctx context . Context , a * Account ) ( * Account , error ) { uri := a . URI a , err := c . doReg ( ctx , uri , " " , a ) if err != nil { return nil , err } a . URI = uri return a , nil }
UpdateReg updates an existing registration.
UpdateReg updates an existing registration .