small fix for extension example

This example won't compile because the init is not valid C.

I didn't update the Japanese version, should I do that too?