From d7d0507f5a4063ac4b749484355901cc2938689c Mon Sep 17 00:00:00 2001 From: timfish Date: Mon, 16 Sep 2019 22:14:14 +0100 Subject: [PATCH] Fix readme and a couple of mis-named types? --- README.md | 1 - src/engine.rs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e3022e1d..114746db 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,6 @@ Rhai's current feature set: * Easy-to-use language based on JS+Rust * Support for overloaded functions * No additional dependencies -* No unsafe code **Note:** Currently, the version is 0.9.1, so the language and APIs may change before they stabilize.* diff --git a/src/engine.rs b/src/engine.rs index 41c217f0..4bff3753 100644 --- a/src/engine.rs +++ b/src/engine.rs @@ -780,8 +780,8 @@ impl Engine { engine.register_type_name::("u32"); engine.register_type_name::("integer"); engine.register_type_name::("u64"); - engine.register_type_name::("usize"); - engine.register_type_name::("f64"); + engine.register_type_name::("usize"); + engine.register_type_name::("f32"); engine.register_type_name::("float"); engine.register_type_name::("string"); engine.register_type_name::("char");