Skip to content

Commit

Permalink
chore: fix typos (#3818)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxianBoy authored Mar 27, 2024
1 parent ca61197 commit d396233
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func TestStringTest(t *testing.T) {
func TestLargeStringTest(t *testing.T) {
if testing.Short() {
t.Skip("\033[33mSkipping memory intesive test for <TEST NAME> in short mode\033[0m")
t.Skip("\033[33mSkipping memory intensive test for <TEST NAME> in short mode\033[0m")
} else {
...
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/scale/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func ExampleResult() {

### Varying Data Type

A `VaryingDataType` is analogous to a Rust enum. A `VaryingDataType` is an interface that needs to be implemented. From the Polkadot spec there are values associated to a `VaryingDataType`, which is analagous to a rust enum variant. Each value has an associated index integer value which is used to determine which value type go-scale should decode to. The following interface needs to be implemented for go-scale to be able to marshal from or unmarshal into.
A `VaryingDataType` is analogous to a Rust enum. A `VaryingDataType` is an interface that needs to be implemented. From the Polkadot spec there are values associated to a `VaryingDataType`, which is analogous to a rust enum variant. Each value has an associated index integer value which is used to determine which value type go-scale should decode to. The following interface needs to be implemented for go-scale to be able to marshal from or unmarshal into.
```go
type EncodeVaryingDataType interface {
IndexValue() (index uint, value any, err error)
Expand Down

0 comments on commit d396233

Please sign in to comment.