mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-28 01:01:53 +03:00
8 lines
289 B
Plaintext
8 lines
289 B
Plaintext
// The program input for message/src/main.leo
|
|
// To pass "m" into the "main" function we
|
|
// 1. Define the "Message" type.
|
|
// 2. Use brackets `{ }` to enclose the struct members.
|
|
// 3. Define each struct member `name : value`.
|
|
[main]
|
|
m: Message = Message { first: 2field, second: 3field };
|