Skip to content

Commit

Permalink
Fix C macro example
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyunli committed Jan 17, 2016
1 parent bff5292 commit 8a82970
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/doc/book/macros.md
Expand Up @@ -285,9 +285,11 @@ This expands to

```text
const char *state = "reticulating splines";
int state = get_log_state();
if (state > 0) {
printf("log(%d): %s\n", state, state);
{
int state = get_log_state();
if (state > 0) {
printf("log(%d): %s\n", state, state);
}
}
```

Expand Down

0 comments on commit 8a82970

Please sign in to comment.