Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6eca2b5e authored by Abhishek Pandit-Subedi's avatar Abhishek Pandit-Subedi
Browse files

floss: Fix doctest in topshim macros

Bug: 218551688
Tag: #floss
Test: ./build.py --target test
Change-Id: I6d7a451b534e71d6c1ce79951d1a1e8aaedbe91b
parent 897acfa3
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -73,10 +73,12 @@ impl Parse for CbVariant {
/// Implement C function to convert callback into enum variant.
///
/// Expected syntax:
///     ```compile_fail
///     cb_variant(DispatcherType, function_name -> EnumType::Variant, args..., {
///         // Statements (maybe converting types)
///         // Args in order will be _0, _1, etc.
///     })
///     ```
///
/// args can do conversions inline as well. In order for conversions to work, the relevant
/// From<T> trait should also be implemented.
@@ -84,7 +86,7 @@ impl Parse for CbVariant {
/// Example:
///     u32 -> BtStatus (requires impl From<u32> for BtStatus)
///
///     To consume a value during conversion, you can use `Type -> _`. This is useful when you want
/// To consume a value during conversion, you can use "Type -> _". This is useful when you want
/// to convert a pointer + size into a single Vec (i.e. using ptr_to_vec).
///
/// Example: