Skip to content

Commit fdebbdc

Browse files
authored
Update README.md
1 parent 2e52fa9 commit fdebbdc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,9 @@ Below is an example plugin for using Parsedown via a wrapper method:
135135

136136
require 'vendor/Parsedown.php';
137137

138-
function md($p)
138+
function md(string $path): string
139139
{
140-
$pd = new \Parsedown();
141-
return $pd->text(file_get_contents($p));
140+
return (new Parsedown)->text(file_get_contents($path));
142141
}
143142
```
144143

0 commit comments

Comments
 (0)