1
0
mirror of https://github.com/danielstjules/Stringy.git synced 2025-08-12 00:04:11 +02:00

Merge pull request #100 from joshdifabio/patch-1

Fix copy/paste mistake in README
This commit is contained in:
Daniel St. Jules
2015-09-09 22:05:46 -07:00

View File

@@ -396,7 +396,7 @@ s('foobar')->ensureLeft('http://'); // 'http://foobar'
##### ensureRight(string $substring)
Ensures that the string begins with $substring. If it doesn't, it's appended.
Ensures that the string ends with $substring. If it doesn't, it's appended.
```php
s('foobar')->ensureRight('.com'); // 'foobar.com'