Skip to content

Commit

Permalink
Fixed documentation of operator[]
Browse files Browse the repository at this point in the history
Co-authored-by: Silvio Traversaro <[email protected]>
  • Loading branch information
S-Dafarra and traversaro authored Jul 5, 2024
1 parent 7ba589b commit d14b9b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/matioCpp/Variable.h
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ class matioCpp::Variable
bool isValid() const;

/**
* @brief Access field at a specific index.
* @brief Access field with specific name.
* @param el The name of the field to be accessed.
* @return A Variable with a weak ownership to the underlying mat variable. This means that the data can be changed,
* but the variable cannot be resized and the name cannot change.
Expand All @@ -339,7 +339,7 @@ class matioCpp::Variable
matioCpp::Variable operator[](const std::string& el);

/**
* @brief Access field at a specific index.
* @brief Access field with specific name.
* @param el The name of the field to be accessed.
* @warning Each element of el has to be strictly smaller than the corresponding dimension.
* @return A const Variable with a weak ownership to the underlying mat variable.
Expand Down

0 comments on commit d14b9b3

Please sign in to comment.