summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 201cc93..d15fd7b 100644
--- a/README.md
+++ b/README.md
@@ -108,8 +108,8 @@ system = FileSystem.parse('echo.qface')
generator = Generator(searchpath='.')
# iterate over the domain model
-for module in system:
- for interface in module:
+for module in system.modules:
+ for interface in module.interfaces:
# prepare a context object
ctx = { 'interface': interface }
# use header.h template with ctx to write to a file