doc: add `%` in op overloading section

pull/5542/head
Swastik Baranwal 2020-06-27 22:56:21 +05:30 committed by GitHub
parent 1848eb0973
commit 8e2a8cc7f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1864,7 +1864,7 @@ in order to improve readability:
To improve safety and maintainability, operator overloading is limited:
- It's only possible to overload `+, -, *, /` operators.
- It's only possible to overload `+, -, *, /, %` operators.
- Calling other functions inside operator functions is not allowed.
- Operator functions can't modify their arguments.
- Both arguments must have the same type (just like with all operators in V).