Skip to content

Commit

Permalink
iox-eclipse-iceoryx#2251 Fix wrong documentation in WaitSet example
Browse files Browse the repository at this point in the history
  • Loading branch information
elBoberido committed Apr 14, 2024
1 parent d5b5d14 commit 829578f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions iceoryx_examples/waitset/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,8 @@ for (auto i = 0U; i < NUMBER_OF_SUBSCRIBERS; ++i)
subscriberVector.emplace_back(iox::capro::ServiceDescription{"Radar", "FrontLeft", "Counter"});
auto& subscriber = subscriberVector.back();

/// important: the user has to ensure that the contextData (sumOfAllSamples) lives as long as
/// the subscriber with its callback is attached to the listener
/// important: the user has to ensure that the 'contextData' (here 'sumOfAllSamples') lives as long as
/// the subscriber with its callback when attached to the 'waitset'
waitset
.attachEvent(subscriber,
iox::popo::SubscriberEvent::DATA_RECEIVED,
Expand Down
4 changes: 2 additions & 2 deletions iceoryx_examples/waitset/ice_waitset_gateway.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ int main()
subscriberVector.emplace_back(iox::capro::ServiceDescription{"Radar", "FrontLeft", "Counter"});
auto& subscriber = subscriberVector.back();

/// important: the user has to ensure that the contextData (sumOfAllSamples) lives as long as
/// the subscriber with its callback is attached to the listener
/// important: the user has to ensure that the 'contextData' (here 'sumOfAllSamples') lives as long as
/// the subscriber with its callback when attached to the 'waitset'
waitset
.attachEvent(subscriber,
iox::popo::SubscriberEvent::DATA_RECEIVED,
Expand Down

0 comments on commit 829578f

Please sign in to comment.