Skip to content

Commit

Permalink
fix: fix nMeasurements() comment (acts-project#3740)
Browse files Browse the repository at this point in the history
comments for mutable and const versions got mixed up.
  • Loading branch information
timadye authored Oct 18, 2024
1 parent c862d2d commit 4643170
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Core/include/Acts/EventData/TrackProxy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@ class TrackProxy {
return std::distance(tsRange.begin(), tsRange.end());
}

/// Return the number of measurements for the track. Const version
/// Return a mutable reference to the number of measurements for the track.
/// Mutable version
/// @note Only available if the track proxy is not read-only
/// @return The number of measurements
unsigned int& nMeasurements()
Expand All @@ -333,8 +334,7 @@ class TrackProxy {
return component<unsigned int, hashString("nMeasurements")>();
}

/// Return a mutable reference to the number of measurements for the track.
/// Mutable version
/// Return the number of measurements for the track. Const version
/// @return The number of measurements
unsigned int nMeasurements() const {
return component<unsigned int, hashString("nMeasurements")>();
Expand Down

0 comments on commit 4643170

Please sign in to comment.