com php-langspec: Added missing $ to &colors.: spec/07-variables.md
| From: | Christoph Michael Becker | Date: | Sun, 15 Mar 2020 11:25:41 +0000 |
| Subject: | com php-langspec: Added missing $ to &colors.: spec/07-variables.md | ||
| Groups: | php.standards.cvs | ||
| Request: | Send a blank email to standards--cvs+get-443@lists.php.net to get a copy of this message | ||
Commit: 8a7e96736ac18cdd159b7af2e7d1e4c666c9c822
Author: Rodion Efremov <coderodd3@gmail.com> Sat, 15 Jun 2019 15:11:13 +0300
Committer: Christoph M. Becker <cmbecker69@gmx.de> Sun, 15 Mar 2020 12:25:41 +0100
Parents: 694b0290a6ec0722820d2db848cc510104623e5d
Branches: master
Link: http://git.php.net/?p=php-langspec.git;a=commitdiff;h=8a7e96736ac18cdd159b7af2e7d1e4c666c9c822
Log:
Added missing $ to &colors.
Line 257 reads "$b = &colors[100];", but should be "$b =
&$colors[100];".
Changed paths:
M spec/07-variables.md
Diff:
diff --git a/spec/07-variables.md b/spec/07-variables.md
index cfb17ff..b280fda 100644
--- a/spec/07-variables.md
+++ b/spec/07-variables.md
@@ -254,7 +254,7 @@ echo $colors[100]; // element with offset 100 is still undefined and NULL
// is used as substitution value instead. Another
// notice is emitted.
-$b = &colors[100]; // a VSlot for $b is created which points to the array
+$b = &$colors[100]; // a VSlot for $b is created which points to the array
// element with the offset 100. An array element with
// offset 100 was undefined but implicitly defined
// because the assignment is byRef. Thus a VSlot for