Fix ring buffer example.
Merge pull request #21 from mondalaci/fix-ringbuffer-example

Fix ring buffer example.