From e2bb3a334780a087dd14f400f2d211a014ef24a2 Mon Sep 17 00:00:00 2001 From: CrimsonGlory Date: Sat, 25 Sep 2021 21:48:20 -0300 Subject: [PATCH] [docs] Add bitwise assignment operators Add bitwise assignment operators to the list of operators involving LValues [skip ci] --- docs/types/operators.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/types/operators.rst b/docs/types/operators.rst index 733dc806d..29962588f 100644 --- a/docs/types/operators.rst +++ b/docs/types/operators.rst @@ -7,7 +7,7 @@ If ``a`` is an LValue (i.e. a variable or something that can be assigned to), th following operators are available as shorthands: ``a += e`` is equivalent to ``a = a + e``. The operators ``-=``, ``*=``, ``/=``, ``%=``, -``|=``, ``&=`` and ``^=`` are defined accordingly. ``a++`` and ``a--`` are equivalent +``|=``, ``&=``, ``^=``, ``<<=`` and ``>>=`` are defined accordingly. ``a++`` and ``a--`` are equivalent to ``a += 1`` / ``a -= 1`` but the expression itself still has the previous value of ``a``. In contrast, ``--a`` and ``++a`` have the same effect on ``a`` but return the value after the change.