Skip to content

Commit e3cce77

Browse files
Simplify text about unary operators
Co-authored-by: Anatolii Kmetiuk <anatoliykmetyuk@gmail.com>
1 parent 8345339 commit e3cce77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/reference/changed-features/operators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ neither of its occurrences is followed by a space and a token that can start an
169169

170170
## Unary operators
171171

172-
As a minor restriction, the first parameter list of a unary operator must not be explicit and empty.
172+
A unary operator must not have explicit parameter lists even if they are empty.
173173
A unary operator is a method named "unary_`op`" where `op` is one of `+`, `-`, `!`, or `~`.
174174

175175
The reason for this restriction is that unary operator syntax does not support supplying an argument list, even if it is empty.

0 commit comments

Comments
 (0)