Skip to content

Commit

Permalink
interest: update the documentation of matchesData()
Browse files Browse the repository at this point in the history
The behavior changed in commit 0af48fb

[skip ci]

Refs: #5270
Change-Id: I9a46c1960b8c3b5d1b647c661c4a843e47c4de0d
  • Loading branch information
Pesa committed Jul 6, 2024
1 parent 25d9c9f commit 7fffb72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ndn-cxx/interest.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ class Interest : public PacketBase, public std::enable_shared_from_this<Interest
/**
* @brief Check if this Interest can be satisfied by @p data.
*
* This method considers `Name`, `CanBePrefix`, and `MustBeFresh`. However, `MustBeFresh`
* evaluation is limited to rejecting Data with zero/omitted `FreshnessPeriod`.
* This method considers only `Name` (including `ImplicitSha256Digest` if present) and
* `CanBePrefix` to determine whether the Data satisfies the Interest.
*/
[[nodiscard]] bool
matchesData(const Data& data) const;
Expand Down

0 comments on commit 7fffb72

Please sign in to comment.