Skip to content

Commit

Permalink
Avoid too long lines in README examples
Browse files Browse the repository at this point in the history
  • Loading branch information
arokettu committed Feb 14, 2018
1 parent 2aec2ba commit e827c34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ use SandFoxMe\Bencode\Types\ListType;
$encoded = Bencode::encode(new ListType(new ArrayObject([1,2,3]))); // "li1ei2ei3ee"

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

### BencodeSerializable
Expand Down

0 comments on commit e827c34

Please sign in to comment.