@@ -18,30 +18,26 @@ pub mod font;
1818///
1919/// The macro supports three forms:
2020///
21- /// ## Unconditional assignment
22- ///
23- /// ```rust
21+ /// ```rust,ignore
2422/// input!(VariantPattern => binding, target_field)
2523/// ```
2624/// Assigns `binding` to `target_field` whenever the message matches.
2725///
2826/// ## Conditional assignment
2927///
30- /// ```rust
28+ /// ```rust,ignore
3129/// input!(VariantPattern => binding, target_field, if cond_expr)
3230/// ```
3331/// Assigns `binding` to `target_field` only if `cond_expr` evaluates to `true`.
3432///
3533/// ## Conditional assignment with error handling
3634///
37- /// ```rust
35+ /// ```rust,ignore
3836/// input!(VariantPattern => binding, target_field, if cond_expr, else err_fn)
3937/// ```
4038/// Assigns `binding` if the condition is true; otherwise, calls `err_fn(self, binding)`.
4139///
42- /// # Examples
43- ///
44- /// ```rust
40+ /// ```rust,ignore
4541/// match msg {
4642/// input!(Message::SetValue(v) => v, value_field),
4743/// input!(Message::SetName(name) => name, name_field, if !name.is_empty()),
@@ -52,7 +48,8 @@ pub mod font;
5248///
5349/// These examples expand into the following Rust code:
5450///
55- /// ```rust
51+ ///
52+ /// ```rust,ignore
5653/// match msg {
5754/// Message::SetValue(v) => {
5855/// self.value_field = v;
@@ -78,7 +75,7 @@ pub mod font;
7875///
7976/// # Example error handler
8077///
81- /// ```rust
78+ /// ```rust,ignore
8279/// impl MyApp {
8380/// fn handle_invalid_age(&mut self, age: i32) {
8481/// // Example: reset the age field and print an error message
0 commit comments