Skip to content

Commit

Permalink
Try to make the Ref trait docs clearer. (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcadman authored Sep 24, 2024
1 parent 7d08933 commit 779e65b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Anoma/Resource/Types.juvix
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ type Resource :=
randSeed : RandSeed
};

--- Provides a function calculating a fixed-size ;RefType; from a dynamically sized ;DataType;.
--- For the private testnet, the requirement can be relaxed by allowing ;RefType; to be dynamically-sized.
--- A trait for transforming values of a `DataType` into values of its
--- corresponding `RefType`. Values of `RefType` must have fixed size. For the
--- private testnet, the requirement can be relaxed by allowing ;RefType; to be
--- dynamically-sized.
trait
type Ref DataType RefType := mkRef {ref : DataType -> RefType};

0 comments on commit 779e65b

Please sign in to comment.