diff --git a/docs/api.rst b/docs/api.rst index f2f0c08ee..ccf8a9e74 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -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 diff --git a/include/zenoh_commons.h b/include/zenoh_commons.h index 90eef3a81..0c418b5dd 100644 --- a/include/zenoh_commons.h +++ b/include/zenoh_commons.h @@ -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. * diff --git a/src/encoding.rs b/src/encoding.rs index 74f0727b4..1dcd3488f 100644 --- a/src/encoding.rs +++ b/src/encoding.rs @@ -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() }