Skip to content

Commit 698bc0b

Browse files
authored
chore(common): fix some function names in comment (#5052)
Signed-off-by: huochexizhan <[email protected]>
1 parent fc231cd commit 698bc0b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

common/channelconfig/util_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func createCfgBlockWithSupportedCapabilities(t *testing.T) *cb.Block {
167167
return configBlock
168168
}
169169

170-
// createCfgBlockWithUnSupportedCapabilities will create a config block that contains mismatched capabilities and should be rejected by the peer
170+
// createCfgBlockWithUnsupportedCapabilities will create a config block that contains mismatched capabilities and should be rejected by the peer
171171
func createCfgBlockWithUnsupportedCapabilities(t *testing.T) *cb.Block {
172172
// Create a config
173173
config := &cb.Config{

common/crypto/tlsgen/ca.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ func (c *ca) CertBytes() []byte {
7575
return c.caCert.Cert
7676
}
7777

78-
// newClientCertKeyPair returns a certificate and private key pair and nil,
78+
// NewClientCertKeyPair returns a certificate and private key pair and nil,
7979
// or nil, error in case of failure
8080
// The certificate is signed by the CA and is used as a client TLS certificate
8181
func (c *ca) NewClientCertKeyPair() (*CertKeyPair, error) {
8282
return newCertKeyPair(false, false, c.caCert.Signer, c.caCert.TLSCert)
8383
}
8484

85-
// newServerCertKeyPair returns a certificate and private key pair and nil,
85+
// NewServerCertKeyPair returns a certificate and private key pair and nil,
8686
// or nil, error in case of failure
8787
// The certificate is signed by the CA and is used as a server TLS certificate
8888
func (c *ca) NewServerCertKeyPair(hosts ...string) (*CertKeyPair, error) {

common/policies/implicitmeta_util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func ImplicitMetaPolicyWithSubPolicy(subPolicyName string, rule cb.ImplicitMetaP
2424
}
2525
}
2626

27-
// TemplateImplicitMetaPolicy creates a policy at the specified path with the given policyName and subPolicyName
27+
// TemplateImplicitMetaPolicyWithSubPolicy creates a policy at the specified path with the given policyName and subPolicyName
2828
func TemplateImplicitMetaPolicyWithSubPolicy(path []string, policyName string, subPolicyName string, rule cb.ImplicitMetaPolicy_Rule) *cb.ConfigGroup {
2929
root := protoutil.NewConfigGroup()
3030
group := root

0 commit comments

Comments
 (0)