Skip to content
This repository was archived by the owner on Dec 20, 2024. It is now read-only.

Commit d33ea4c

Browse files
committed
bugfix:modify the words spelling mistakes
Signed-off-by: Aresforchina <[email protected]>
1 parent e77febc commit d33ea4c

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed
4 KB
Binary file not shown.

pkg/errortypes/supernode_errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var (
3232

3333
// ErrUnknowError represents the error should not happen
3434
// and the cause of that is unknown.
35-
ErrUnknowError = DfError{codeUnknowError, "unknow error"}
35+
ErrUnknowError = DfError{codeUnknowError, "unknown error"}
3636

3737
// PeerContinue represents the peer should wait.
3838
PeerContinue = DfError{codePeerContinue, "peer continue"}

supernode/daemon/mgr/cdn/super_reader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func readHeader(reader io.Reader, pieceMd5 hash.Hash) (uint32, error) {
102102
return 0, err
103103
}
104104
if n != config.PieceHeadSize {
105-
return 0, fmt.Errorf("unexected head size: %d", n)
105+
return 0, fmt.Errorf("unexpected head size: %d", n)
106106
}
107107

108108
if pieceMd5 != nil {

0 commit comments

Comments
 (0)