@@ -141,8 +141,8 @@ impl<B, C> ControlFlow<B, C> {
141
141
/// ```
142
142
/// use std::ops::ControlFlow;
143
143
///
144
- /// assert!(ControlFlow::<i32, String >::Break(3 ).is_break());
145
- /// assert!(!ControlFlow::<String , i32>::Continue(3).is_break());
144
+ /// assert!(ControlFlow::<&str, i32 >::Break("Stop right there!" ).is_break());
145
+ /// assert!(!ControlFlow::<&str , i32>::Continue(3).is_break());
146
146
/// ```
147
147
#[ inline]
148
148
#[ stable( feature = "control_flow_enum_is" , since = "1.59.0" ) ]
@@ -157,8 +157,8 @@ impl<B, C> ControlFlow<B, C> {
157
157
/// ```
158
158
/// use std::ops::ControlFlow;
159
159
///
160
- /// assert!(!ControlFlow::<i32, String >::Break(3 ).is_continue());
161
- /// assert!(ControlFlow::<String , i32>::Continue(3).is_continue());
160
+ /// assert!(!ControlFlow::<&str, i32 >::Break("Stop right there!" ).is_continue());
161
+ /// assert!(ControlFlow::<&str , i32>::Continue(3).is_continue());
162
162
/// ```
163
163
#[ inline]
164
164
#[ stable( feature = "control_flow_enum_is" , since = "1.59.0" ) ]
@@ -174,8 +174,8 @@ impl<B, C> ControlFlow<B, C> {
174
174
/// ```
175
175
/// use std::ops::ControlFlow;
176
176
///
177
- /// assert_eq!(ControlFlow::<i32, String >::Break(3 ).break_value(), Some(3 ));
178
- /// assert_eq!(ControlFlow::<String , i32>::Continue(3).break_value(), None);
177
+ /// assert_eq!(ControlFlow::<&str, i32 >::Break("Stop right there!" ).break_value(), Some("Stop right there!" ));
178
+ /// assert_eq!(ControlFlow::<&str , i32>::Continue(3).break_value(), None);
179
179
/// ```
180
180
#[ inline]
181
181
#[ stable( feature = "control_flow_enum" , since = "1.83.0" ) ]
@@ -205,8 +205,8 @@ impl<B, C> ControlFlow<B, C> {
205
205
/// ```
206
206
/// use std::ops::ControlFlow;
207
207
///
208
- /// assert_eq!(ControlFlow::<i32, String >::Break(3 ).continue_value(), None);
209
- /// assert_eq!(ControlFlow::<String , i32>::Continue(3).continue_value(), Some(3));
208
+ /// assert_eq!(ControlFlow::<&str, i32 >::Break("Stop right there!" ).continue_value(), None);
209
+ /// assert_eq!(ControlFlow::<&str , i32>::Continue(3).continue_value(), Some(3));
210
210
/// ```
211
211
#[ inline]
212
212
#[ stable( feature = "control_flow_enum" , since = "1.83.0" ) ]
0 commit comments