We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29124a8 commit d91703fCopy full SHA for d91703f
README.md
@@ -32,7 +32,7 @@ impl Counter {
32
33
/// Ownership will NOT control the heap-allocated memory until own it back.
34
#[no_mangle]
35
-pub extern fn counter_new(value: u8) -> *mut TestIt {
+pub extern fn counter_new(value: u8) -> *mut Counter {
36
return opaque_pointer::raw(Counter::new());
37
}
38
@@ -43,7 +43,7 @@ pub extern fn counter_free(counter: *mut Counter) {
43
44
45
46
-pub extern fn counter_add(counter: *mut Counter, value: u8) -> boolean {
+pub extern fn counter_add(counter: *mut Counter, value: u8) -> bool {
47
let counter = unsafe { opaque_pointer::mut_object(counter) };
48
if counter.is_err() {
49
return false;
0 commit comments