From 6eae39f9985aa444eccc6b2112c0803c76262562 Mon Sep 17 00:00:00 2001 From: bytesingsong Date: Sat, 12 Jul 2025 15:23:09 +0800 Subject: [PATCH] chore(docs): fix some typos in comment Signed-off-by: bytesingsong --- documentation/en/default-lotus-config.toml | 2 +- node/config/doc_gen.go | 2 +- node/config/load.go | 2 +- node/config/load_test.go | 4 ++-- node/config/types.go | 2 +- node/impl/full/state.go | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/documentation/en/default-lotus-config.toml b/documentation/en/default-lotus-config.toml index effcd456c49..77b3a8dd211 100644 --- a/documentation/en/default-lotus-config.toml +++ b/documentation/en/default-lotus-config.toml @@ -115,7 +115,7 @@ #ElasticSearchTracer = "" # Name of elasticsearch index that will be used to save tracer data. - # This property is used only if ElasticSearchTracer propery is set. + # This property is used only if ElasticSearchTracer property is set. # # type: string # env var: LOTUS_PUBSUB_ELASTICSEARCHINDEX diff --git a/node/config/doc_gen.go b/node/config/doc_gen.go index f515a1211f9..b3e8de3b98c 100644 --- a/node/config/doc_gen.go +++ b/node/config/doc_gen.go @@ -824,7 +824,7 @@ Format: https://:@:/`, Type: "string", Comment: `Name of elasticsearch index that will be used to save tracer data. -This property is used only if ElasticSearchTracer propery is set.`, +This property is used only if ElasticSearchTracer property is set.`, }, { Name: "TracerSourceAuth", diff --git a/node/config/load.go b/node/config/load.go index eae586c146d..f2d146b5839 100644 --- a/node/config/load.go +++ b/node/config/load.go @@ -256,7 +256,7 @@ type cfgUpdateOpts struct { // UpdateCfgOpt is a functional option for updating the config type UpdateCfgOpt func(opts *cfgUpdateOpts) error -// KeepUncommented sets a function for matching default valeus that should remain uncommented during +// KeepUncommented sets a function for matching default values that should remain uncommented during // a config update that comments out default values. func KeepUncommented(f func(string) bool) UpdateCfgOpt { return func(opts *cfgUpdateOpts) error { diff --git a/node/config/load_test.go b/node/config/load_test.go index acd58163f58..b35c962f523 100644 --- a/node/config/load_test.go +++ b/node/config/load_test.go @@ -26,7 +26,7 @@ func TestDecodeNothing(t *testing.T) { cfg, err := FromFile("./does-not-exist.toml", SetDefault(fullNodeDefault)) assert.Nil(err, "error should be nil") assert.Equal(DefaultFullNode(), cfg, - "config from not exisiting file should be the same as default") + "config from not existing file should be the same as default") } } @@ -79,7 +79,7 @@ func TestValidateSplitstoreSet(t *testing.T) { [Chainstore] # type: bool # env var: LOTUS_CHAINSTORE_ENABLESPLITSTORE - # oops its mising + # oops its missing [Chainstore.Splitstore] ColdStoreType = "discard" diff --git a/node/config/types.go b/node/config/types.go index ca83cdfbd59..3c8a328309a 100644 --- a/node/config/types.go +++ b/node/config/types.go @@ -465,7 +465,7 @@ type Pubsub struct { // Format: https://:@:/ ElasticSearchTracer string // Name of elasticsearch index that will be used to save tracer data. - // This property is used only if ElasticSearchTracer propery is set. + // This property is used only if ElasticSearchTracer property is set. ElasticSearchIndex string // Auth token that will be passed with logs to elasticsearch - used for weighted peers score. TracerSourceAuth string diff --git a/node/impl/full/state.go b/node/impl/full/state.go index b1bb4f2e77f..8a37e32efb2 100644 --- a/node/impl/full/state.go +++ b/node/impl/full/state.go @@ -629,7 +629,7 @@ func (m *StateModule) StateWaitMsg(ctx context.Context, msg cid.Cid, confidence // This is not necessarily an error -- EVM methods (and in the future native actors) may // return just bytes, and in the not so distant future we'll have native wasm actors // that are by definition not in the registry. - // So in this case, log a debug message and retun the raw bytes. + // So in this case, log a debug message and return the raw bytes. log.Debugf("failed to get return type: %s", err) returndec = recpt.Return case err != nil: