summaryrefslogtreecommitdiff
path: root/COMMON_ERRORS.md
diff options
context:
space:
mode:
Diffstat (limited to 'COMMON_ERRORS.md')
-rw-r--r--COMMON_ERRORS.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/COMMON_ERRORS.md b/COMMON_ERRORS.md
index 6cb7340bfd..aa4b042654 100644
--- a/COMMON_ERRORS.md
+++ b/COMMON_ERRORS.md
@@ -23,7 +23,7 @@ This pointer is not guaranteed to be filled, and could be a null dereference.
## 2. String views aren't null terminated
```cpp
-int getIntFromString(const std::string_view s){
+int getIntFromString(std::string_view s){
return std::atoi(s.data());
}
```