Fix README 'aiken new' example.

This commit is contained in:
KtorZ 2024-09-01 19:11:11 +02:00
parent 9f6daa8cd5
commit f8be81baa5
No known key found for this signature in database
GPG Key ID: 33173CB6F77F4277
1 changed files with 4 additions and 4 deletions

View File

@ -115,9 +115,9 @@ fn readme(root: &Path, project_name: &str) -> miette::Result<()> {
For example, as `validators/always_true.ak`
```gleam
validator {{
fn spend(_datum: Data, _redeemer: Data, _context: Data) -> Bool {{
```aiken
validator my_first_validator {{
spend(_datum: Option<Data>, _redeemer: Data, _output_reference: Data, _context: Data) {{
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:
```gleam
```aiken
test foo() {{
1 + 1 == 2
}}