Skip to content

Commit e827c34

Browse files
committed
Avoid too long lines in README examples
1 parent 2aec2ba commit e827c34

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ use SandFoxMe\Bencode\Types\ListType;
4343
$encoded = Bencode::encode(new ListType(new ArrayObject([1,2,3]))); // "li1ei2ei3ee"
4444

4545
// other objects will be converted to string if possible or generate an error if not
46-
$encoded = Bencode::encode(new class { function __toString() { return 'I am string'; } }); // "11:I am string"
46+
$encoded = Bencode::encode(new class {
47+
function __toString() { return 'I am string'; }
48+
}); // "11:I am string"
4749
```
4850

4951
### BencodeSerializable

0 commit comments

Comments
 (0)