diff --git a/docs/manual/developer/modguide.html.en b/docs/manual/developer/modguide.html.en
index 80240dc5ea..7d463085c6 100644
--- a/docs/manual/developer/modguide.html.en
+++ b/docs/manual/developer/modguide.html.en
@@ -1198,7 +1198,7 @@ our name tag as the Per-directory configuration handler:
cfg->path = "/foo/bar";
cfg->typeOfAction = 0x11;
}
- return dir;
+ return cfg;
}
diff --git a/docs/manual/developer/modguide.xml b/docs/manual/developer/modguide.xml
index e276f10808..fae6fb7e33 100644
--- a/docs/manual/developer/modguide.xml
+++ b/docs/manual/developer/modguide.xml
@@ -1197,7 +1197,7 @@ our name tag as the Per-directory configuration handler:
cfg->path = "/foo/bar";
cfg->typeOfAction = 0x11;
}
- return dir;
+ return cfg;
}