Skip to content

Commit 6119bcb

Browse files
committed
Fix example syntax (2)
1 parent 801466b commit 6119bcb

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -88,18 +88,18 @@ for (auto& jp : jp_list)
8888
}
8989
}
9090

91-
// output:
92-
{"i\j":5," ":7,"g|h":4,"a/b":1,"":0,"e^f":3,"c%d":2,"m~n":8,"foo":["bar","baz"]}
93-
["bar","baz"]
94-
"bar"
95-
0
96-
1
97-
2
98-
3
99-
4
100-
5
101-
7
102-
8
103-
Value not found
104-
Key pointing elsewhere than the end of the path must exist. Non-existent key is preceding 'found'
91+
// output:
92+
// {"i\j":5," ":7,"g|h":4,"a/b":1,"":0,"e^f":3,"c%d":2,"m~n":8,"foo":["bar","baz"]}
93+
// ["bar","baz"]
94+
// "bar"
95+
// 0
96+
// 1
97+
// 2
98+
// 3
99+
// 4
100+
// 5
101+
// 7
102+
// 8
103+
// Value not found
104+
// Key pointing elsewhere than the end of the path must exist. Non-existent key is preceding 'found'
105105
```

src/examples/usage.h

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,20 @@ usage ()
5858
}
5959
}
6060

61-
/* output:
62-
{"i\j":5," ":7,"g|h":4,"a/b":1,"":0,"e^f":3,"c%d":2,"m~n":8,"foo":["bar","baz"]}
63-
["bar","baz"]
64-
"bar"
65-
0
66-
1
67-
2
68-
3
69-
4
70-
5
71-
7
72-
8
73-
Value not found
74-
Key pointing elsewhere than the end of the path must exist. Non-existent key is preceding 'found' */
61+
// output:
62+
// {"i\j":5," ":7,"g|h":4,"a/b":1,"":0,"e^f":3,"c%d":2,"m~n":8,"foo":["bar","baz"]}
63+
// ["bar","baz"]
64+
// "bar"
65+
// 0
66+
// 1
67+
// 2
68+
// 3
69+
// 4
70+
// 5
71+
// 7
72+
// 8
73+
// Value not found
74+
// Key pointing elsewhere than the end of the path must exist. Non-existent key is preceding 'found'
7575
}
7676

7777
#endif // USAGE_H

0 commit comments

Comments
 (0)