compiler: fix -Wwrite-strings warning in example.