Skip to content

Commit

Permalink
make this example compile (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbacarella authored Apr 24, 2020
1 parent 799ae1d commit 714768b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ pub fn average(arr: ocaml::Array<f64>) -> Result<f64, ocaml::Error> {
#[ocaml::native_func]
pub fn incr(value: ocaml::Value) -> ocaml::Value {
let i = value.int_val();
Value::int(i + 1)
ocaml::Value::int(i + 1)
}

// This is equivalent to:
Expand Down Expand Up @@ -195,4 +195,3 @@ Since 0.10 and later have a much different API compared to earlier version, here
- Strings are converted to `str` or `String`, rather than using the `Str` type
- Tuples are converted to Rust tuples (up to 20 items), rather than using the `Tuple` type
- The `core` module has been renamed to `sys` and is now just an alias for the `ocaml-sys` crate and all sub-module have been removed

0 comments on commit 714768b

Please sign in to comment.