summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/spa/design.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/spa/design.md b/doc/spa/design.md
index 10e5e22c..173b9b49 100644
--- a/doc/spa/design.md
+++ b/doc/spa/design.md
@@ -189,7 +189,7 @@ If this method succeeds, you can cast the `iface` variable to
`struct spa_log *` and start using the log interface methods.
```c
-struct spa_log *log;
+struct spa_log *log = iface;
spa_log_warn(log, "Hello World!\n");
```