Skip to content

Commit 2990323

Browse files
authored
echo sprintf -> printf (#634)
1 parent ff4a6b0 commit 2990323

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ if ($validator->isValid()) {
4040
} else {
4141
echo "JSON does not validate. Violations:\n";
4242
foreach ($validator->getErrors() as $error) {
43-
echo sprintf("[%s] %s\n", $error['property'], $error['message']);
43+
printf("[%s] %s\n", $error['property'], $error['message']);
4444
}
4545
}
4646
```

0 commit comments

Comments
 (0)