rust/doc: fix doc compile issues

pull/8867/head
Victor Julien 2 years ago
parent cc3f3a0a72
commit d4c60924f1

@ -588,19 +588,20 @@ pub trait AppLayerEvent {
) -> i8;
}
//
// Normally usage of this function will be generated by
// derive(AppLayerEvent), for example:
//
// #[derive(AppLayerEvent)]
// enum AppEvent {
// EventOne,
// EventTwo,
// }
//
// get_event_info::<AppEvent>(...)
/// Generic `get_info_info` implementation for enums implementing
/// AppLayerEvent.
///
/// Normally usage of this function will be generated by
/// derive(AppLayerEvent), for example:
///
/// #[derive(AppLayerEvent)]
/// enum AppEvent {
/// EventOne,
/// EventTwo,
/// }
///
/// get_event_info::<AppEvent>(...)
#[inline(always)]
pub unsafe fn get_event_info<T: AppLayerEvent>(
event_name: *const std::os::raw::c_char,

Loading…
Cancel
Save