Skip to content

Commit

Permalink
rustdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart committed Jul 21, 2020
1 parent 8a562d7 commit 773f0f8
Show file tree
Hide file tree
Showing 5 changed files with 340 additions and 9 deletions.
2 changes: 1 addition & 1 deletion zenoh-protocol/src/session/manager.rs
Expand Up @@ -36,7 +36,7 @@ use crate::proto::{Attachment, ZenohMessage, smsg};
use zenoh_util::{zasyncread, zasyncwrite, zerror};
use zenoh_util::core::{ZResult, ZError, ZErrorKind};

/// # Example:
/// # Examples
/// ```
/// use async_std::sync::Arc;
/// use async_trait::async_trait;
Expand Down
2 changes: 1 addition & 1 deletion zenoh-router/src/routing/broker.rs
Expand Up @@ -26,7 +26,7 @@ pub use crate::routing::resource::*;
pub use crate::routing::pubsub::*;
pub use crate::routing::queries::*;

/// # Example:
/// # Examples
/// ```
/// use async_std::sync::Arc;
/// use zenoh_protocol::core::{PeerId, whatami::PEER};
Expand Down
7 changes: 4 additions & 3 deletions zenoh/src/net/mod.rs
Expand Up @@ -36,12 +36,13 @@ pub async fn scout(_iface: &str, _tries: usize, _period: usize) -> Vec<String> {

/// Open a zenoh-net session.
///
/// # Example:
/// # Examples
/// ```
/// # async_std::task::block_on(async {
/// use zenoh::net::*;
///
/// let session = open(Config::peer(), None);
///
/// let session = open(Config::peer(), None).await.unwrap();
/// # })
/// ```
pub async fn open(config: Config, ps: Option<Properties>) -> ZResult<Session> {
debug!("open(\"{}\", {:?})", config, ps);
Expand Down

0 comments on commit 773f0f8

Please sign in to comment.