Skip to content

Commit 7049930

Browse files
committed
Fixed error in README
1 parent 0d7a975 commit 7049930

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,16 @@ Fine. I reluctantly wrapped the C stuff in a C++ class called `RingBufC`. All th
1515
```
1616
// If you want to use C...
1717
char *mystr = "I like C";
18+
1819
RingBuf *buf = RingBuf_new(sizeof(char*), 100);
1920
buf->add(buf, &mystr);
2021
```
2122

2223
```
2324
// If you want to use the C++ wrapper
2425
char *mystr = "C++ has pretty object.method() syntax";
25-
RingBufC buf(sizeof(char*), 100);
26+
27+
RingBufC = buf(sizeof(char*), 100);
2628
buf.add(&mystr);
2729
```
2830

0 commit comments

Comments
 (0)