Skip to content

Commit 16d4cc0

Browse files
authored
chore: fix some typos in comment (#13231)
Signed-off-by: minxinyi <[email protected]>
1 parent f7c0fff commit 16d4cc0

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

cmd/lotus-bench/reporter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func (r *Reporter) Print(elapsed time.Duration, w io.Writer) {
117117
for i := 0; i < nrBucket; i++ {
118118
buckets[i].start = int64(i) * bucketRange
119119
buckets[i].end = buckets[i].start + bucketRange
120-
// extend the last bucked by any remaning range caused by the integer division
120+
// extend the last bucked by any remaining range caused by the integer division
121121
if i == nrBucket-1 {
122122
buckets[i].end = latencyRange
123123
}

cmd/lotus-shed/state-stats.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ var statSnapshotCmd = &cli.Command{
609609

610610
var statActorCmd = &cli.Command{
611611
Name: "stat-actor",
612-
Usage: "calculates the size of actors and their immeidate structures",
612+
Usage: "calculates the size of actors and their immediate structures",
613613
Description: `Any DAG linked by the actor object (field) will have its size calculated independently of all
614614
other linked DAG. If an actor has two fields containing links to the same DAG the structure size will be counted
615615
twice, included in each fields size individually.

cmd/lotus-sim/simulation/simulation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ func (sim *Simulation) Walk(
259259
// 4. We serially call the callback in reverse-chain order.
260260
//
261261
// We have a buffer of size 1 for both resolved tipsets and unresolved tipsets. This should
262-
// ensure that we never block unecessarily.
262+
// ensure that we never block unnecessarily.
263263

264264
type work struct {
265265
ts *types.TipSet

storage/sealer/storiface/filetype.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ func (t SectorFileType) SealSpaceUse(ssize abi.SectorSize) (uint64, error) {
235235
// and setting the corresponding bit in the denyMask.
236236
// If a string in denyTypes cannot be converted to a valid SectorFileType, it is ignored.
237237
// Finally, the method returns the bitwise AND of the original SectorFileType and the denyMask.
238-
// The returned SectorFileType will only allow the types specified in allowTypes and exclude the types specified in denyTypes.`
238+
// The returned SectorFileType will only allow the types specified in allowTypes and exclude the types specified in denyTypes.
239239
func (t SectorFileType) SubAllowed(allowTypes []string, denyTypes []string) SectorFileType {
240240
var denyMask SectorFileType // 1s deny
241241

0 commit comments

Comments
 (0)