Skip to content

Commit

Permalink
fix encoding constant name
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisBiryukov91 committed Sep 20, 2024
1 parent 6357f72 commit 65ee280
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ Predefined Encodings
.. doxygenfunction:: z_encoding_application_yaml
.. doxygenfunction:: z_encoding_text_yaml
.. doxygenfunction:: z_encoding_text_json5
.. doxygenfunction:: z_encoding_application_python_serialized_objects
.. doxygenfunction:: z_encoding_application_python_serialized_object
.. doxygenfunction:: z_encoding_application_protobuf
.. doxygenfunction:: z_encoding_application_java_serialized_object
.. doxygenfunction:: z_encoding_application_openmetrics_text
Expand Down
2 changes: 1 addition & 1 deletion include/zenoh_commons.h
Original file line number Diff line number Diff line change
Expand Up @@ -2014,7 +2014,7 @@ ZENOHC_API const struct z_loaned_encoding_t *z_encoding_application_protobuf(voi
*
* Constant alias for string: `"application/python-serialized-object"`.
*/
ZENOHC_API const struct z_loaned_encoding_t *z_encoding_application_python_serialized_objects(void);
ZENOHC_API const struct z_loaned_encoding_t *z_encoding_application_python_serialized_object(void);
/**
* A SOAP 1.2 message serialized as XML 1.0.
*
Expand Down
2 changes: 1 addition & 1 deletion src/encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ pub extern "C" fn z_encoding_text_json5() -> &'static z_loaned_encoding_t {
///
/// Constant alias for string: `"application/python-serialized-object"`.
#[no_mangle]
pub extern "C" fn z_encoding_application_python_serialized_objects() -> &'static z_loaned_encoding_t
pub extern "C" fn z_encoding_application_python_serialized_object() -> &'static z_loaned_encoding_t
{
Encoding::APPLICATION_PYTHON_SERIALIZED_OBJECT.as_loaned_c_type_ref()
}
Expand Down

0 comments on commit 65ee280

Please sign in to comment.