com doc/ja: Fix wording in example: language/operators.xml

From: Date: Tue, 09 Mar 2021 11:08:12 +0000
Subject: com doc/ja: Fix wording in example: language/operators.xml
Groups: php.doc.ja 
Request: Send a blank email to doc-ja+get-6243@lists.php.net to get a copy of this message
Commit: 612f97c95a7f1fa7b155911294af8ada31ff9747 Author: Yoshinari Takaoka <mumumu@mumumu.org> Tue, 9 Mar 2021 20:08:12 +0900 Parents: 7b46aee984e8ddd3e27b5e7fa8fc99876e61ab21 Branches: master Link: http://git.php.net/?p=doc/ja.git;a=commitdiff;h=612f97c95a7f1fa7b155911294af8ada31ff9747 Log: Fix wording in example The evaluation order is irrelevant; what matters is the associativity. This amends commit bcd666c. Changed paths: M language/operators.xml Diff: diff --git a/language/operators.xml b/language/operators.xml index 570d6c11cf..a154f91c46 100644 --- a/language/operators.xml +++ b/language/operators.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: bcd666c7d0027d2ea13b5051d39e8cf48e338d27 Maintainer: takagi Status: ready --> +<!-- EN-Revision: 80958298c021b3284349b563266eefd184025c83 Maintainer: takagi Status: ready --> <!-- CREDITS: hirokawa,mumumu --> <chapter xml:id="language.operators" xmlns="http://docbook.org/ns/docbook"> <title>演算子</title> @@ -1776,7 +1776,7 @@ if (empty($_POST['action'])) { echo (true ? 'true' : false ? 't' : 'f') // しかし、PHP 8.0.0 より前のバージョンでは、実際には上の出力結果は 't' です。 -// なぜなら、三項演算子は左から右へ順に評価されるからです。 +// なぜなら、三項演算子は左結合だったからです。 // 上のコードをもう少しわかりやすく書くと、このようになります。 echo ((true ? 'true' : false) ? 't' : 'f');

« previous php.doc.ja (#6243) next »