Skip to content

Commit

Permalink
Add a print in the first example in the doc (nexus-xyz#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoichi-nexus authored Jul 15, 2024
1 parent 8d325fd commit 75d4314
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ The Nexus zkVM can prove any computation. For a Rust program:
```rust
#![cfg_attr(target_arch = "riscv32", no_std, no_main)]

use nexus_rt::println;

fn fib(n: u32) -> u32 {
match n {
0 => 0,
Expand All @@ -65,6 +67,7 @@ fn main() {
let n = 7;
let result = fib(n);
assert_eq!(result, 13);
println!("fib({}) = {}", n, result);
}
```

Expand Down

0 comments on commit 75d4314

Please sign in to comment.