Skip to content

Commit

Permalink
chore: fix some typos (#3670)
Browse files Browse the repository at this point in the history
Signed-off-by: chuangjinglu <[email protected]>
  • Loading branch information
chuangjinglu authored Jan 27, 2025
1 parent db3b57a commit 32cf5fd
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripts/build_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ set -euo pipefail
# DOCKER_IMAGE=localhost:5001/avalanchego FORCE_TAG_LATEST=1 ./scripts/build_image.sh # Build and push image to private registry with tag `latest`

# Multi-arch builds require Docker Buildx and QEMU. buildx should be enabled by
# default in the verson of docker included with Ubuntu 22.04, and qemu can be
# default in the version of docker included with Ubuntu 22.04, and qemu can be
# installed as follows:
#
# sudo apt-get install qemu qemu-user-static
Expand Down
2 changes: 1 addition & 1 deletion snow/engine/common/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ type AppResponseHandler interface {
// Notify this engine of the response to a previously sent AppRequest with
// the same requestID.
//
// The meaning of response is application (VM) specifc.
// The meaning of response is application (VM) specific.
//
// It is not guaranteed that response is well-formed or valid.
AppResponse(
Expand Down
2 changes: 1 addition & 1 deletion snow/validators/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (m *manager) AddWeight(subnetID ids.ID, nodeID ids.NodeID, weight uint64) e
}

// We do not need to grab a write lock here because we never modify the
// subnetToVdrs map. However, we must hold the read lock during the entirity
// subnetToVdrs map. However, we must hold the read lock during the entirety
// of this function to ensure that errors are returned consistently.
//
// Consider the case that:
Expand Down
2 changes: 1 addition & 1 deletion vms/platformvm/txs/executor/staker_tx_verification.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var (
ErrNotValidator = errors.New("isn't a current or pending validator")
ErrRemovePermissionlessValidator = errors.New("attempting to remove permissionless validator")
ErrStakeOverflow = errors.New("validator stake exceeds limit")
ErrPeriodMismatch = errors.New("proposed staking period is not inside dependant staking period")
ErrPeriodMismatch = errors.New("proposed staking period is not inside dependent staking period")
ErrOverDelegated = errors.New("validator would be over delegated")
ErrIsNotTransformSubnetTx = errors.New("is not a transform subnet tx")
ErrTimestampNotBeforeStartTime = errors.New("chain timestamp not before start time")
Expand Down
2 changes: 1 addition & 1 deletion vms/platformvm/vm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ func TestRewardValidatorAccept(t *testing.T) {
rewardTx := blk.(block.Block).Txs()[0].Unsigned
require.IsType(&txs.RewardValidatorTx{}, rewardTx)

// Verify options and accept commmit block
// Verify options and accept commit block
require.NoError(commit.Verify(context.Background()))
require.NoError(abort.Verify(context.Background()))
txID := blk.(block.Block).Txs()[0].ID()
Expand Down

0 comments on commit 32cf5fd

Please sign in to comment.