From ca232142beaf02168b024a1f166a4eb3febdff3a Mon Sep 17 00:00:00 2001 From: sgmoore Date: Sat, 2 Oct 2021 20:32:25 -0700 Subject: [PATCH] Update value-types.rst - fix typo Fix typo at line 69. --- docs/types/value-types.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/types/value-types.rst b/docs/types/value-types.rst index c1b439c7e..c02eea8a9 100644 --- a/docs/types/value-types.rst +++ b/docs/types/value-types.rst @@ -66,7 +66,7 @@ Shifts ^^^^^^ The result of a shift operation has the type of the left operand, truncating the result to match the type. -The right operand must be of unsigned type, trying to shift by an signed type will produce a compilation error. +The right operand must be of unsigned type, trying to shift by a signed type will produce a compilation error. Shifts can be "simulated" using multiplication by powers of two in the following way. Note that the truncation to the type of the left operand is always performed at the end, but not mentioned explicitly.