Fix README 'aiken new' example.
This commit is contained in:
parent
9f6daa8cd5
commit
f8be81baa5
|
@ -115,9 +115,9 @@ fn readme(root: &Path, project_name: &str) -> miette::Result<()> {
|
||||||
|
|
||||||
For example, as `validators/always_true.ak`
|
For example, as `validators/always_true.ak`
|
||||||
|
|
||||||
```gleam
|
```aiken
|
||||||
validator {{
|
validator my_first_validator {{
|
||||||
fn spend(_datum: Data, _redeemer: Data, _context: Data) -> Bool {{
|
spend(_datum: Option<Data>, _redeemer: Data, _output_reference: Data, _context: Data) {{
|
||||||
True
|
True
|
||||||
}}
|
}}
|
||||||
}}
|
}}
|
||||||
|
@ -133,7 +133,7 @@ fn readme(root: &Path, project_name: &str) -> miette::Result<()> {
|
||||||
|
|
||||||
You can write tests in any module using the `test` keyword. For example:
|
You can write tests in any module using the `test` keyword. For example:
|
||||||
|
|
||||||
```gleam
|
```aiken
|
||||||
test foo() {{
|
test foo() {{
|
||||||
1 + 1 == 2
|
1 + 1 == 2
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in New Issue