From 717a1c99054c3f19ece900774b51827d849ba3df Mon Sep 17 00:00:00 2001 From: Harikrishnan Mulackal Date: Tue, 6 Apr 2021 11:48:04 +0200 Subject: [PATCH] Update docs/080-breaking-changes.rst --- docs/080-breaking-changes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/080-breaking-changes.rst b/docs/080-breaking-changes.rst index e793066ba..b322d2a48 100644 --- a/docs/080-breaking-changes.rst +++ b/docs/080-breaking-changes.rst @@ -173,4 +173,4 @@ How to update your code - Change ``msg.sender.transfer(x)`` to ``payable(msg.sender).transfer(x)`` or use a stored variable of ``address payable`` type. - Change ``x**y**z`` to ``(x**y)**z``. - Use inline assembly as a replacement for ``log0``, ..., ``log4``. -- Negate unsigned integers by subtracting them from the max uint and adding 1 (e.g. `type(uint256).max - x + 1`, while ensuring that `x` is not zero) +- Negate unsigned integers by subtracting them from the maximum value of the type and adding 1 (e.g. ``type(uint256).max - x + 1``, while ensuring that `x` is not zero)