Add comments to examples.

This commit is contained in:
Stephen Chung
2022-02-12 12:41:04 +08:00
parent 2caf686e8a
commit 3f8f0b250f
9 changed files with 20 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
//! An example showing how to register a simple Rust function.
use rhai::{Engine, EvalAltResult};
fn add(x: i64, y: i64) -> i64 {