diff --git a/crates/servicepoint_binding_c/README.md b/crates/servicepoint_binding_c/README.md index ba03216..16240a9 100644 --- a/crates/servicepoint_binding_c/README.md +++ b/crates/servicepoint_binding_c/README.md @@ -27,7 +27,7 @@ int main(void) { SPCommand *command = sp_command_bitmap_linear_win(0, 0, pixels, Uncompressed); while (sp_connection_send_command(connection, sp_command_clone(command))); - sp_packet_free(packet); + sp_command_free(command); sp_connection_free(connection); return 0; } diff --git a/crates/servicepoint_binding_c/src/lib.rs b/crates/servicepoint_binding_c/src/lib.rs index 54161de..d6f839b 100644 --- a/crates/servicepoint_binding_c/src/lib.rs +++ b/crates/servicepoint_binding_c/src/lib.rs @@ -19,7 +19,7 @@ //! SPCommand *command = sp_command_bitmap_linear_win(0, 0, pixels, Uncompressed); //! while (sp_connection_send_command(connection, sp_command_clone(command))); //! -//! sp_packet_free(packet); +//! sp_command_free(command); //! sp_connection_free(connection); //! return 0; //! }