From 3e3a933ecb77dc4a62d861eeaf2d392bc34a3fcc Mon Sep 17 00:00:00 2001 From: Vinzenz Schroeter Date: Sat, 7 Sep 2024 14:53:16 +0200 Subject: [PATCH] fix example --- crates/servicepoint_binding_c/README.md | 2 +- crates/servicepoint_binding_c/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; //! }