From 64676aeede1757946d96ac78853748e9e8cc1ce5 Mon Sep 17 00:00:00 2001 From: Yaocheng Ye Date: Fri, 28 Jul 2017 14:02:40 +0800 Subject: [PATCH] [FAB-5512] Fix typos in fabric-ca-client package config.go: Line 125: "Distinquished" should be "Distinguished" main.go: Line 34: "Hyerledger" should be "Hyperledger" Line 92: "Distinquished" should be "Distinguished" Line 124: "enbled" should be "enabled" Change-Id: Icb987c0627d3d0a667ded88ec45f1ec9dfb441fa Signed-off-by: Yaocheng Ye --- cmd/fabric-ca-client/config.go | 2 +- cmd/fabric-ca-client/main.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/fabric-ca-client/config.go b/cmd/fabric-ca-client/config.go index a71ac2a6f..afba3b1b0 100644 --- a/cmd/fabric-ca-client/config.go +++ b/cmd/fabric-ca-client/config.go @@ -122,7 +122,7 @@ tls: # hosts - A list of space-separated host names which the certificate should be valid for # # NOTE: The serialnumber field below, if specified, becomes part of the issued -# certificate's DN (Distinquished Name). For example, one use case for this is +# certificate's DN (Distinguished Name). For example, one use case for this is # a company with its own CA (Certificate Authority) which issues certificates # to its employees and wants to include the employee's serial number in the DN # of its issued certificates. diff --git a/cmd/fabric-ca-client/main.go b/cmd/fabric-ca-client/main.go index dd72c7bee..93c223f1a 100644 --- a/cmd/fabric-ca-client/main.go +++ b/cmd/fabric-ca-client/main.go @@ -31,7 +31,7 @@ import ( "github.com/spf13/viper" ) -// rootCmd is the base command for the Hyerledger Fabric CA client +// rootCmd is the base command for the Hyperledger Fabric CA client var rootCmd = &cobra.Command{ Use: cmdName, Short: longName, @@ -89,7 +89,7 @@ func init() { clientCfg = &lib.ClientConfig{} tags := map[string]string{ "skip.csr.cn": "true", // Skip CN on client side as enrollment ID is used as CN - "help.csr.serialnumber": "The serial number in a certificate signing request, which becomes part of the DN (Distinquished Name)", + "help.csr.serialnumber": "The serial number in a certificate signing request, which becomes part of the DN (Distinguished Name)", "help.csr.hosts": "A list of comma-separated host names in a certificate signing request", } err = util.RegisterFlags(pflags, clientCfg, tags) @@ -121,7 +121,7 @@ func RunMain(args []string) error { } // checkAndEnableProfiling checks for the FABRIC_CA_CLIENT_PROFILE_MODE -// env variable, if it is set to "cpu", cpu profiling is enbled; +// env variable, if it is set to "cpu", cpu profiling is enabled; // if it is set to "heap", heap profiling is enabled func checkAndEnableProfiling() error { profileMode = strings.ToLower(os.Getenv(fabricCAClientProfileMode))