diff options
1 files changed, 1 insertions, 5 deletions
| -rw-r--r-- | src/Generic/String/String.cpp | 6 |
diff --git a/src/Generic/String/String.cpp b/src/Generic/String/String.cpp index ca1580b..21e6619 100644 --- a/src/Generic/String/String.cpp +++ b/src/Generic/String/String.cpp @@ -34,10 +34,6 @@ unsigned String::get_length() const { return length; } -char& String::operator[](unsigned index) { - return str[index]; -} - String::String() : String("") {} String::String(const String& other) { @@ -76,6 +72,6 @@ int String::compare(const String& other) const { return strcmp(str, other.str); } -char String::operator[](unsigned index) { +char& String::operator[](unsigned index) { return str[index]; } |
