aboutsummaryrefslogtreecommitdiff
path: root/mingling
diff options
context:
space:
mode:
Diffstat (limited to 'mingling')
-rw-r--r--mingling/src/docs/gen_program.md2
-rw-r--r--mingling/src/gen_program.rs2
2 files changed, 4 insertions, 0 deletions
diff --git a/mingling/src/docs/gen_program.md b/mingling/src/docs/gen_program.md
index 91e7b91..16402c0 100644
--- a/mingling/src/docs/gen_program.md
+++ b/mingling/src/docs/gen_program.md
@@ -7,10 +7,12 @@ You can access them like this:
```rust
# pub struct ThisProgram;
# impl ThisProgram { fn new() -> Self { ThisProgram } }
+# fn main() {
// main.rs / lib.rs
// Use them here via crate::*
let mut program = crate::ThisProgram::new();
+# }
// `ThisProgram` is generated here
// |
diff --git a/mingling/src/gen_program.rs b/mingling/src/gen_program.rs
index 18d9117..aa0c4b5 100644
--- a/mingling/src/gen_program.rs
+++ b/mingling/src/gen_program.rs
@@ -23,6 +23,8 @@ pub struct Entry {
///
/// It contains the IDs of all types for this program, registered by the `register_type!` macro.
pub enum ThisProgram {
+ /// The generic program entry point.
+ Entry,
/// Indicates that no matching renderer was found for the given output.
ErrorRendererNotFound,
/// Indicates that no matching dispatcher was found for the given arguments.