Skip to content

Commit

Permalink
chore: fix some typos in comment
Browse files Browse the repository at this point in the history
Signed-off-by: toofooboo <cmaker@foxmail.com>
  • Loading branch information
toofooboo authored and aleksej-paschenko committed Jan 9, 2025
1 parent 591652e commit 919f747
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion liteclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func decodeLength(b []byte) (int, []byte, error) {
panic("how it cat be possible? you are fucking wizard!")
}
if len(b) < 4 {
return 0, nil, fmt.Errorf("not enought bytes for decoding size")
return 0, nil, fmt.Errorf("not enough bytes for decoding size")
}
b[0] = 0
i := binary.LittleEndian.Uint32(b[:4])
Expand Down
2 changes: 1 addition & 1 deletion tl/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func decode(buf io.Reader, val reflect.Value) error {
return err
}
if val.Type().Len() != len(data) {
return fmt.Errorf("mismatched lenghth of decoded byte slice (%v) and array (%v)", len(data), val.Type().Len())
return fmt.Errorf("mismatched length of decoded byte slice (%v) and array (%v)", len(data), val.Type().Len())
}
reflect.Copy(val, reflect.ValueOf(data))
return nil
Expand Down
2 changes: 1 addition & 1 deletion tl/parser/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ func tagToUint32(tag string) (uint32, error) {
tag = strings.TrimPrefix(tag, "#")
b, err := hex.DecodeString(tag)
if err != nil {
return 0, fmt.Errorf("ivalid tag %s err: %s", tag, err.Error())
return 0, fmt.Errorf("invalid tag %s err: %s", tag, err.Error())
}
b1 := make([]byte, 4)
copy(b1[:], b)
Expand Down
2 changes: 1 addition & 1 deletion tlb/parser/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (g *Generator) GenerateGolangTypes(declarations []CombinatorDeclaration, ty
End: c.End,
}
} else if len(c.Combinator.TypeExpressions) > 0 {
return "", fmt.Errorf("combinators with paramaters '%v' are not supported", c.Combinator.Name)
return "", fmt.Errorf("combinators with parameters '%v' are not supported", c.Combinator.Name)
}
f := false
for i, c1 := range dec {
Expand Down
2 changes: 1 addition & 1 deletion tlb/primitives_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func TestHashMapE(t *testing.T) {
t.Fatalf("error: %v", err)
}
if len(res.OutMsgs.Keys()) != int(msgCount) {
t.Fatalf("ivalid number of out messages")
t.Fatalf("invalid number of out messages")
}
}

Expand Down
2 changes: 1 addition & 1 deletion tonconnect/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func (s *Server) CheckProof(ctx context.Context, tp *Proof, checkPayload, checkD
}
pubKey, err = ParseStateInit(tp.Proof.StateInit)
if err != nil {
return false, nil, fmt.Errorf("failed to to get public key")
return false, nil, fmt.Errorf("failed to get public key")
}
}

Expand Down

0 comments on commit 919f747

Please sign in to comment.