Skip to content

Commit

Permalink
fix doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
digizeph committed Nov 1, 2024
1 parent d284e2c commit fda017f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ impl BgpkitBroker {
/// let broker = bgpkit_broker::BgpkitBroker::new();
/// let peers = broker.get_peers().unwrap();
/// for peer in &peers {
/// println!("{}", peer);
/// println!("{:?}", peer);
/// }
/// ```
///
Expand All @@ -659,7 +659,7 @@ impl BgpkitBroker {
/// .collector_id("route-views2");
/// let peers = broker.get_peers().unwrap();
/// for peer in &peers {
/// println!("{}", peer);
/// println!("{:?}", peer);
/// }
/// ```
///
Expand All @@ -670,7 +670,7 @@ impl BgpkitBroker {
/// .peers_asn(64496);
/// let peers = broker.get_peers().unwrap();
/// for peer in &peers {
/// println!("{}", peer);
/// println!("{:?}", peer);
/// }
/// ```
///
Expand All @@ -681,7 +681,7 @@ impl BgpkitBroker {
/// .peers_ip("192.168.1.1".parse().unwrap());
/// let peers = broker.get_peers().unwrap();
/// for peer in &peers {
/// println!("{}", peer);
/// println!("{:?}", peer);
/// }
/// ```
///
Expand All @@ -692,7 +692,7 @@ impl BgpkitBroker {
/// .peers_only_full_feed(true);
/// let peers = broker.get_peers().unwrap();
/// for peer in &peers {
/// println!("{}", peer);
/// println!("{:?}", peer);
/// }
/// ```
///
Expand All @@ -704,7 +704,7 @@ impl BgpkitBroker {
/// .peers_only_full_feed(true);
/// let peers = broker.get_peers().unwrap();
/// for peer in &peers {
/// println!("{}", peer);
/// println!("{:?}", peer);
/// }
/// ```
pub fn get_peers(&self) -> Result<Vec<BrokerPeer>, BrokerError> {
Expand Down

0 comments on commit fda017f

Please sign in to comment.