From 0ef43978fd44fbcab542c8e135d572e44b6bb288 Mon Sep 17 00:00:00 2001 From: YuShuangqi Date: Sat, 27 Jan 2018 07:36:25 +0800 Subject: [PATCH] update types correct the mistakes in writings --- docs/types.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/types.rst b/docs/types.rst index 98009b3fb..55eaa69ae 100644 --- a/docs/types.rst +++ b/docs/types.rst @@ -899,7 +899,7 @@ Operators Involving LValues If ``a`` is an LValue (i.e. a variable or something that can be assigned to), the following operators are available as shorthands: -``a += e`` is equivalent to ``a = a + e``. The operators ``-=``, ``*=``, ``/=``, ``%=``, ``a |=``, ``&=`` 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. +``a += e`` is equivalent to ``a = a + e``. The operators ``-=``, ``*=``, ``/=``, ``%=``, ``|=``, ``&=`` 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. delete ------