@@ -203,19 +203,19 @@ impl<Ms, Mdl, ElC: View<Ms> + 'static, GMs: 'static> AppBuilder<Ms, Mdl, ElC, GM
203
203
self
204
204
}
205
205
206
- /// Register a function which maps URLs to messages
206
+ /// Registers a function which maps URLs to messages.
207
207
pub fn routes ( mut self , routes : RoutesFn < Ms > ) -> Self {
208
208
self . routes = Some ( routes) ;
209
209
self
210
210
}
211
211
212
- /// Register a function which maps window events to messages
212
+ /// Registers a function which decides how window events will be handled.
213
213
pub fn window_events ( mut self , evts : WindowEvents < Ms , Mdl > ) -> Self {
214
214
self . window_events = Some ( evts) ;
215
215
self
216
216
}
217
217
218
- /// Register a sink function
218
+ /// Registers a sink function.
219
219
///
220
220
/// The sink function is a function which can update the model based
221
221
/// on global messages. Consider to use a sink function when a
@@ -225,7 +225,10 @@ impl<Ms, Mdl, ElC: View<Ms> + 'static, GMs: 'static> AppBuilder<Ms, Mdl, ElC, GM
225
225
self
226
226
}
227
227
228
- /// Turn this AppBuilder into an App which is ready to run.
228
+ /// Turn this [`AppBuilder`] into an [`App`] which is ready to run.
229
+ ///
230
+ /// [`AppBuilder`]: struct.AppBuilder.html
231
+ /// [`App`]: struct.App.html
229
232
pub fn finish ( mut self ) -> App < Ms , Mdl , ElC , GMs > {
230
233
if self . mount_point . is_none ( ) {
231
234
self = self . mount ( "app" )
0 commit comments