compiler: fix -Wwrite-strings warning in example.
[ccan] / ccan / compiler / compiler.h
index 1e0d8efbaacc1be66aa291f861560a513b69887a..aa7323f5ff9cbc6805620e7aa4bce0383276508d 100644 (file)
  *     const char *greek_name(enum greek greek);
  *
  *     // Inline version.
- *     static inline char *_greek_name(enum greek greek)
+ *     static inline const char *_greek_name(enum greek greek)
  *     {
  *             switch (greek) {
  *             case ALPHA: return "alpha";