doc: fix warnings and errors in demo code
While doing some unrelated work, I found a couple of warnings and one error on the demo code. I couldn't miss the opportunity to send upstream such a valuable contribution.
While doing some unrelated work, I found a couple of warnings and one error on the demo code. I couldn't miss the opportunity to send upstream such a valuable contribution.