diff --git a/pkg/interop/doc.go b/pkg/interop/doc.go index 8031b775a..6743430db 100644 --- a/pkg/interop/doc.go +++ b/pkg/interop/doc.go @@ -16,7 +16,7 @@ correspond to smartcontract and VM types: non-byte slice - Array map[K]V - map Other types are defined explicitly in this pkg: - Hash160, Hash256, InteropInterface, PublicKey, Signature + Hash160, Hash256, Interface, PublicKey, Signature Note that unless written otherwise structures defined in this packages can't be correctly created by new() or composite literals, they should be received from diff --git a/pkg/interop/iterator/iterator.go b/pkg/interop/iterator/iterator.go index 33a78d563..778bc33f7 100644 --- a/pkg/interop/iterator/iterator.go +++ b/pkg/interop/iterator/iterator.go @@ -6,14 +6,15 @@ package iterator import "github.com/nspcc-dev/neo-go/pkg/interop/neogointernal" // Iterator represents a Neo iterator, it's an opaque data structure that can -// be properly created by Create or storage.Find. Unlike enumerators, iterators -// range over key-value pairs, so it's convenient to use them for maps. This -// structure is similar in function to Neo .net framework's Iterator. +// be properly created by Create or storage.Find. Iterators range over key-value +// pairs, so it's convenient to use them for maps. This structure is similar in +// function to Neo .net framework's Iterator. type Iterator struct{} -// Next advances the iterator returning true if it is was successful (and you -// can use Key or Value) and false otherwise (and there are no more elements in -// this Iterator). This function uses `System.Iterator.Next` syscall. +// Next advances the iterator returning true if it was successful (and you +// can use Value to get value for slices or key-value pair for maps) and false +// otherwise (and there are no more elements in this Iterator). This function +// uses `System.Iterator.Next` syscall. func Next(it Iterator) bool { return neogointernal.Syscall1("System.Iterator.Next", it).(bool) } diff --git a/pkg/interop/native/neo/neo.go b/pkg/interop/native/neo/neo.go index 44003bbfe..47ff4b30f 100644 --- a/pkg/interop/native/neo/neo.go +++ b/pkg/interop/native/neo/neo.go @@ -1,7 +1,7 @@ /* Package neo provides interface to NeoToken native contract. NEO token is special, it's not just a regular NEP-17 contract, it also -provides access to chain-specific settings and implements commmittee +provides access to chain-specific settings and implements committee voting system. */ package neo