Skip to content

Commit 85be74c

Browse files
authored
Minor changes
1 parent dc77b27 commit 85be74c

File tree

1 file changed

+2
-2
lines changed
  • content/cpp/concepts/strings/terms/rfind

1 file changed

+2
-2
lines changed

content/cpp/concepts/strings/terms/rfind/rfind.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ CatalogContent:
1414
- 'paths/computer-science'
1515
---
1616

17-
The **`rfind()`** function returns the position of the last occurrence of a specified substring or character within a `std::string`. The search proceeds from right to left, and the function returns `std::string::npos` if no match is found.
17+
The C++ **`rfind()`** [function](https://www.codecademy.com/resources/docs/cpp/functions) returns the position of the last occurrence of a given substring or character within a `std::string`. The search proceeds from right to left, and the function returns `std::string::npos` if no match is found.
1818

1919
## Syntax
2020

@@ -25,7 +25,7 @@ string_object.rfind(val, pos = npos);
2525
**Parameters:**
2626

2727
- `val`: A character or string to search for.
28-
- `pos`: (Optional) The position to start searching backward from. Defaults to `std::string::npos`, meaning the end of the string.
28+
- `pos` (Optional): The position to start searching backward from. Defaults to `std::string::npos`, meaning the end of the string.
2929

3030
**Return value:**
3131

0 commit comments

Comments
 (0)