Skip to content

Commit

Permalink
Fix some commments
Browse files Browse the repository at this point in the history
  • Loading branch information
andreilitvin committed Dec 6, 2024
1 parent eb224fd commit bb93623
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,11 @@ struct DeviceListWrapper
explicit DeviceListWrapper(Span<const EmberAfDeviceType> types) : deviceTypes(types) {}
};

/// Search by device type within a `DeviceListWrapper` which just wraps a span of EmberAfDeviceType
struct ByDeviceType
{
using Key = DataModel::DeviceTypeEntry; // the KEY inside a type │ │ │
using Type = const EmberAfDeviceType; // the values for a sub-search │ │ │
using Key = DataModel::DeviceTypeEntry;
using Type = const EmberAfDeviceType;
static Span<Type> GetSpan(DeviceListWrapper & data) { return data.deviceTypes; }
static bool HasKey(const Key & id, const Type & instance)
{
Expand Down

0 comments on commit bb93623

Please sign in to comment.