aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/module.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-04-21 13:12:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-04-21 13:12:04 +0200
commitf66848dbd677b1027bade5728e04954c313231af (patch)
tree65d3141c75355a60e709106e89358b216c9c1b1f /libbuild2/module.hxx
parentf6aaa5a526913467ccac19162a6409be1dea8012 (diff)
Make sure main module_functions entry is after submodules
Diffstat (limited to 'libbuild2/module.hxx')
-rw-r--r--libbuild2/module.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbuild2/module.hxx b/libbuild2/module.hxx
index c638c70..6cdd040 100644
--- a/libbuild2/module.hxx
+++ b/libbuild2/module.hxx
@@ -151,9 +151,9 @@ namespace build2
//
// The <name> part in the function name is the main module name without
// submodule components (for example, `c` in `c.config`) and the load
- // function is expected to return boot/init functions for all its submodules
- // (if any) as well as for the module itself as an array of module_functions
- // terminated with an all-NULL entry.
+ // function is expected to return boot/init functions as an array of
+ // module_functions: entries for all its submodules (if any) first, followed
+ // by the module itself, and terminated with an all-NULL entry.
//
// Note that the load function is guaranteed to be called during serial
// execution (either from main() or during the load phase).