aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/fib.rs
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2023-12-05 23:02:38 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2023-12-05 23:02:38 +0100
commit9fca507f58f2b2ced731c00f5d20d542c0855906 (patch)
tree93c3d2623eb8dfea687d604bb37b877560839857 /examples/fib.rs
parent751667f3833f5239bc1a7dca2eae28f1791999ff (diff)
downloadjuicebox-asm-9fca507f58f2b2ced731c00f5d20d542c0855906.tar.gz
juicebox-asm-9fca507f58f2b2ced731c00f5d20d542c0855906.zip
examples: add doc to existing examples
Diffstat (limited to 'examples/fib.rs')
-rw-r--r--examples/fib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/fib.rs b/examples/fib.rs
index 534dc13..e523b9d 100644
--- a/examples/fib.rs
+++ b/examples/fib.rs
@@ -1,3 +1,8 @@
+//! Fibonacci example.
+//!
+//! Jit compile a function at runtime (generate native host code) to compute the fibonacci sequence
+//! to demonstrate the [`juicebox_asm`] crate.
+
use juicebox_asm::prelude::*;
use juicebox_asm::Runtime;