Skip to content

Commit 1ddff50

Browse files
authored
Correction of typos
1 parent c56681e commit 1ddff50

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎README.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ $address = 'One Infinite Loop, Cupertino 95014';
110110
$cityZipCodeRegex = '/^[^,\\]+[,\\\s]+(?<city>.+?)\s*(?<zipCode>\d{5})?$/';
111111
preg_match($cityZipCodeRegex, $address, $matches);
112112

113-
saveCityZipCode($matchers['city'], $matchers['zipCode']);
113+
saveCityZipCode($matches['city'], $matches['zipCode']);
114114
```
115115
**[⬆ back to top](#table-of-contents)**
116116

@@ -124,7 +124,7 @@ $l = ['Austin', 'New York', 'San Francisco'];
124124

125125
for ($i = 0; $i < count($l); $i++) {
126126
$li = $l[$i];
127-
oStuff();
127+
doStuff();
128128
doSomeOtherStuff();
129129
// ...
130130
// ...
@@ -925,7 +925,7 @@ abstract class Adapter {
925925

926926
class AjaxAdapter extends Adapter {
927927
public function __construct() {
928-
parent::__construct();
928+
parent::__construct();
929929
$this->name = 'ajaxAdapter';
930930
}
931931
}
@@ -1119,7 +1119,7 @@ class Square extends Shape {
11191119
}
11201120

11211121
public function getArea() {
1122-
return $this->length * $this->length;
1122+
return pow($this->length, 2);
11231123
}
11241124
}
11251125

0 commit comments

Comments
 (0)