Skip to content

Commit 3a0ac28

Browse files
authored
Merge pull request #6507 from rustversion/master
docs: minor improvement for docs
2 parents f1db38a + 50c6ca7 commit 3a0ac28

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

pkg/metrics/heartbeat.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func (hbs *HeartbeatService) SetStream(s net.Stream) {
116116

117117
// Start starts the heartbeat service by, starting the connection loop. The connection
118118
// loop will attempt to connected to the aggregator service, once a successful
119-
// connection is made with the aggregator service hearbeats will be sent to it.
119+
// connection is made with the aggregator service heartbeats will be sent to it.
120120
// If the connection is broken the heartbeat service will attempt to reconnect via
121121
// the connection loop. Start will not return until context `ctx` is 'Done'.
122122
func (hbs *HeartbeatService) Start(ctx context.Context) {

pkg/util/ffiwrapper/impl/partialfile.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func writeTrailer(maxPieceSize int64, w *os.File, r rlepluslazy.RunIterator) err
6060
func createPartialFile(maxPieceSize abi.PaddedPieceSize, path string) (*partialFile, error) {
6161
f, err := os.OpenFile(path, os.O_RDWR|os.O_CREATE, 0o644) // nolint
6262
if err != nil {
63-
return nil, fmt.Errorf("openning partial file '%s': %w", path, err)
63+
return nil, fmt.Errorf("opening partial file '%s': %w", path, err)
6464
}
6565

6666
err = func() error {
@@ -95,7 +95,7 @@ func createPartialFile(maxPieceSize abi.PaddedPieceSize, path string) (*partialF
9595
func openPartialFile(maxPieceSize abi.PaddedPieceSize, path string) (*partialFile, error) {
9696
f, err := os.OpenFile(path, os.O_RDWR, 0o644) // nolint
9797
if err != nil {
98-
return nil, fmt.Errorf("openning partial file '%s': %w", path, err)
98+
return nil, fmt.Errorf("opening partial file '%s': %w", path, err)
9999
}
100100

101101
var rle rlepluslazy.RLE

venus-shared/actors/types/eth_legacy_155_transactions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func (tx *EthLegacy155TxArgs) Signature() (*typescrypto.Signature, error) {
114114
sig = append(sig, padLeadingZeros(s, 32)...)
115115
sig = append(sig, v...)
116116

117-
// pre-pend a one byte marker so nodes know that this is a legacy transaction
117+
// prepend a one byte marker so nodes know that this is a legacy transaction
118118
sig = append([]byte{EthLegacy155TxSignaturePrefix}, sig...)
119119

120120
if len(sig) != EthLegacy155TxSignatureLen0 && len(sig) != EthLegacy155TxSignatureLen1 {

venus-shared/actors/types/eth_legacy_homestead_transactions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func (tx *EthLegacyHomesteadTxArgs) Signature() (*typescrypto.Signature, error)
133133
} else {
134134
sig = append(sig, v[0])
135135
}
136-
// pre-pend a one byte marker so nodes know that this is a legacy transaction
136+
// prepend a one byte marker so nodes know that this is a legacy transaction
137137
sig = append([]byte{EthLegacyHomesteadTxSignaturePrefix}, sig...)
138138

139139
if len(sig) != EthLegacyHomesteadTxSignatureLen {

venus-shared/types/messager/address.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func (as AddressState) String() string {
2929
case AddressStateForbbiden:
3030
return "Forbbiden"
3131
default:
32-
return fmt.Sprintf("unknow state %d", as)
32+
return fmt.Sprintf("unknown state %d", as)
3333
}
3434
}
3535

0 commit comments

Comments
 (0)