Website Summary Files Commits Branches @commit @diff @stats
path: root / src / String / String.cpp
diff options
context:
space:
mode:
1 files changed, 1 insertions, 1 deletions
-rw-r--r--src/String/String.cpp2
diff --git a/src/String/String.cpp b/src/String/String.cpp
index 5cd8ca3..61f577f 100644
--- a/src/String/String.cpp
+++ b/src/String/String.cpp
@@ -55,7 +55,7 @@ String& String::operator=(String&& other) {
return *this;
}
-int String::compare(const String& other) {
+int String::compare(const String& other) const {
return strcmp(str, other.str);
}