Skip to content

Commit e8e6d44

Browse files
sperssonDavid-OConnor
authored andcommitted
More improvement to AppBuilder docs
1 parent cc50948 commit e8e6d44

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/vdom.rs

+7-4
Original file line numberDiff line numberDiff line change
@@ -203,19 +203,19 @@ impl<Ms, Mdl, ElC: View<Ms> + 'static, GMs: 'static> AppBuilder<Ms, Mdl, ElC, GM
203203
self
204204
}
205205

206-
/// Register a function which maps URLs to messages
206+
/// Registers a function which maps URLs to messages.
207207
pub fn routes(mut self, routes: RoutesFn<Ms>) -> Self {
208208
self.routes = Some(routes);
209209
self
210210
}
211211

212-
/// Register a function which maps window events to messages
212+
/// Registers a function which decides how window events will be handled.
213213
pub fn window_events(mut self, evts: WindowEvents<Ms, Mdl>) -> Self {
214214
self.window_events = Some(evts);
215215
self
216216
}
217217

218-
/// Register a sink function
218+
/// Registers a sink function.
219219
///
220220
/// The sink function is a function which can update the model based
221221
/// 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
225225
self
226226
}
227227

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
229232
pub fn finish(mut self) -> App<Ms, Mdl, ElC, GMs> {
230233
if self.mount_point.is_none() {
231234
self = self.mount("app")

0 commit comments

Comments
 (0)