Remove Codec::builder doctest.

Doctests can only test public API, so now that the Codec is private, we can't
have a doctest.  Since this test was only a code example (no behaviour test),
there's no value in replacing it with a unit test.
This commit is contained in:
Henry de Valence 2019-10-17 10:41:40 -07:00
parent c7e0d63bed
commit 1f0a7e5e73
1 changed files with 0 additions and 12 deletions

View File

@ -42,18 +42,6 @@ pub struct Builder {
impl Codec {
/// Return a builder for constructing a [`Codec`].
///
/// # Example
/// ```
/// # use zebra_network::protocol::codec::Codec;
/// use zebra_network::{constants, Network};
///
/// let codec = Codec::builder()
/// .for_network(Network::Mainnet)
/// .for_version(constants::CURRENT_VERSION)
/// .with_max_body_len(4_000_000)
/// .finish();
/// ```
pub fn builder() -> Builder {
Builder {
network: Network::Mainnet,