Doc #79508 [Ver->Csd]: minor doc typo error

From: Date: Wed, 22 Apr 2020 19:43:23 +0000
Subject: Doc #79508 [Ver->Csd]: minor doc typo error
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-17510@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79508&edit=1 ID: 79508 Updated by: mumumu@php.net Reported by: peshigome at gmail dot com Summary: minor doc typo error -Status: Verified +Status: Closed Type: Documentation Problem -Package: Documentation problem +Package: Translation problem Operating System: Irrelevant PHP Version: Irrelevant Assigned To: mumumu Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2020-04-22 18:53:27] peshigome at gmail dot com Description: ------------ --- From manual page: https://php.net/language.expressions --- In the japanese version/translation On the following paragraph, two "*/" are missing : $f = double($d++); /* $f には、$d が加算される前の値を2倍した値、 つまり 2*6 = 12 が、代入されます。 $g = double(++$e); /* $g には、$e が加算された後の値を2倍した値、 つまり 2*7 = 14 が、代入されます。 $h = $g += 10; /* まず、$g に 10 が加算され、24 になります。 代入値 (24) は、$h に代入されます。 そして、$h も同様に 24 になります。 */ Expected result: ---------------- $f = double($d++); /* $f には、$d が加算される前の値を2倍した値、 つまり 2*6 = 12 が、代入されます。 */ $g = double(++$e); /* $g には、$e が加算された後の値を2倍した値、 つまり 2*7 = 14 が、代入されます。 */ $h = $g += 10; /* まず、$g に 10 が加算され、24 になります。 代入値 (24) は、$h に代入されます。 そして、$h も同様に 24 になります。 */ Actual result: -------------- $f = double($d++); /* $f には、$d が加算される前の値を2倍した値、 つまり 2*6 = 12 が、代入されます。 $g = double(++$e); /* $g には、$e が加算された後の値を2倍した値、 つまり 2*7 = 14 が、代入されます。 $h = $g += 10; /* まず、$g に 10 が加算され、24 になります。 代入値 (24) は、$h に代入されます。 そして、$h も同様に 24 になります。 */ ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=79508&edit=1

« previous php.doc.bugs (#17510) next »