Skip to content

Commit c97deb3

Browse files
committed
Make examples slightly more interesting ending up with words w/o whitespave
1 parent 4292b73 commit c97deb3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ std::ostream & operator<<(std::ostream & os, std::vector<T> const & coll )
5252

5353
int main()
5454
{
55-
std::cout << nonstd::string::split("Hello, world", ",");
55+
std::cout << nonstd::string::split("Hello, world", ", ");
5656
}
5757
```
5858
5959
### Compile and run
6060
6161
```bash
6262
prompt> g++ -std=c++11 -Wall -I../include -o 01-basic.exe 01-basic.cpp && 01-basic.exe
63-
['Hello', ' world', ]
63+
['Hello', 'world', ]
6464
```
6565

6666
## In a nutshell

example/01-basic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ std::ostream & operator<<(std::ostream & os, std::vector<T> const & coll )
4545

4646
int main()
4747
{
48-
std::cout << nonstd::split("Hello, world", ",");
48+
std::cout << nonstd::split("Hello, world", ", ");
4949
}
5050

5151
// cl -nologo -EHsc -I../include 01-basic.cpp && 01-basic.exe

0 commit comments

Comments
 (0)