Merge pull request #86 from timfish/fix/small

Fix: README and a couple of mis-named types?
This commit is contained in:
Lukáš Hozda [magnusi] 2019-09-17 13:04:02 +02:00 committed by GitHub
commit b92ed6201e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -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.*

View File

@ -780,8 +780,8 @@ impl Engine {
engine.register_type_name::<u32>("u32");
engine.register_type_name::<i64>("integer");
engine.register_type_name::<u64>("u64");
engine.register_type_name::<u64>("usize");
engine.register_type_name::<f32>("f64");
engine.register_type_name::<usize>("usize");
engine.register_type_name::<f32>("f32");
engine.register_type_name::<f64>("float");
engine.register_type_name::<String>("string");
engine.register_type_name::<char>("char");