Skip to content

Commit

Permalink
fix parameter name
Browse files Browse the repository at this point in the history
Signed-off-by: SofiaFaraci <[email protected]>
  • Loading branch information
SofiaFaraci committed May 27, 2024
1 parent c3f6bf6 commit c010143
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions code/include/strManipulation.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ void replaceAll(std::string& str, const std::string& from, const std::string& to
* @brief function that checks if a string is present in another string
*
* @param str main string where the search is done
* @param str2 string to be searched
* @param subStr string to be searched
* @return true
* @return false
*/
bool checkIfStrPresent(const std::string str, const std::string str2);
bool checkIfStrPresent(const std::string str, const std::string subStr);

/**
* @brief function that deletes a section of a string that is between two strings
Expand Down
6 changes: 3 additions & 3 deletions code/src/strManipulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ void replaceAll(std::string& str, const std::string& from, const std::string& to
* @brief function that checks if a string is present in another string
*
* @param str main string where the search is done
* @param str2 string to be searched
* @param subStr string to be searched
* @return true
* @return false
*/
bool checkIfStrPresent(const std::string str, const std::string str2) {
return str.find(str2) != std::string::npos;
bool checkIfStrPresent(const std::string str, const std::string subStr) {
return str.find(subStr) != std::string::npos;
}

/**
Expand Down

0 comments on commit c010143

Please sign in to comment.