Skip to content

Commit

Permalink
channel: Improve Data documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Geihs <[email protected]>
  • Loading branch information
matthiasgeihs committed May 30, 2022
1 parent 11bbe2a commit fed956a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions channel/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ type (
// It is sent as binary data over the wire. For unmarshaling a data from
// binary representation, use App.NewData() to create an instance of Data
// specific to this application and then unmarshal using it.
//
// The encoding must be stable, that is, E(data) = E(D(E(data))).
Data interface {
encoding.BinaryMarshaler
encoding.BinaryUnmarshaler
Expand Down

0 comments on commit fed956a

Please sign in to comment.