Skip to content
Permalink
Browse files

Fix links in documentation

  • Loading branch information...
antoyo committed Nov 17, 2018
1 parent b285169 commit 83f518f2b59843a232ecfd5ad25216e599eb3cb0
Showing with 4 additions and 4 deletions.
  1. +2 −2 src/component.rs
  2. +2 −2 src/lib.rs
@@ -26,9 +26,9 @@ use super::{EventStream, Widget};
/// ## Warning
/// You must keep your components as long as you want them to send/receive events.
/// Common practice is to store `Component`s in the `Widget` struct (see the [communication
/// example](https://github.com/antoyo/relm/blob/master/examples/communication.rs#L182-L188)).
/// example](https://github.com/antoyo/relm/blob/master/tests/communication.rs#L216-L220)).
/// The `#[widget]` attribute takes care of storing them in the struct automatically (see the
/// [communication-attribute example](https://github.com/antoyo/relm/blob/master/examples/communication-attribute.rs)).
/// [communication-attribute example](https://github.com/antoyo/relm/blob/master/tests/communication-attribute.rs)).
#[must_use]
pub struct Component<WIDGET: Widget> {
stream: EventStream<WIDGET::Msg>,
@@ -150,8 +150,6 @@ extern "C" {
}

/// Dummy macro to be used with `#[derive(Widget)]`.
///
/// An example can be found [here](https://github.com/antoyo/relm/blob/master/examples/buttons-derive/src/main.rs#L52).
#[macro_export]
macro_rules! impl_widget {
($($tt:tt)*) => {
@@ -160,6 +158,8 @@ macro_rules! impl_widget {
}

/// Macro to be used as a stable alternative to the `#[widget]` attribute.
///
/// An example can be found [here](https://github.com/antoyo/relm/blob/master/examples/buttons-derive/src/main.rs#L50).
#[macro_export]
macro_rules! relm_widget {
($($tts:tt)*) => {

0 comments on commit 83f518f

Please sign in to comment.
You can’t perform that action at this time.