Fix the example for @before_compile hook
Merge pull request #1876 from alco/before-compile-doc

Fix the example for @before_compile hook