~asayers/inukshuk

4248f18a76a33ca1c606fa911e3650d702cd020a — Alex Sayers 5 years ago 942da8f
Prevent some comments being run as doctests
1 files changed, 7 insertions(+), 5 deletions(-)

M src/leveled.rs
M src/leveled.rs => src/leveled.rs +7 -5
@@ 12,7 12,9 @@ use crate::flat_vec::*;
/// an upper bound on the number of intermediate revisions the client will
/// be forced to step through with:
///
/// 	30 * ceil(log_16(to - from))
/// ```text
/// 30 * ceil(log_16(to - from))
/// ```
///
///	Therefore a client wanting to jump forward 300 revisions, for instance,
///	may receive a patch which takes it through as many as 90 revisions


@@ 182,10 184,10 @@ impl<T> Leveled<T> {
impl Leveled<String> {
    /// It looks like this:
    ///
    ///     level 0: ["0->1", "1->2", "2->3", "3->4", "4->5", ... ]
    ///     level 1: ["0->16", "16->32", "32->48", "48->64", ... ]
    ///     level 2: ["0->256", "256->512", "512->768", ... ]
    ///     level 3: ["0->4096"]
    ///   level 0: ["0->1", "1->2", "2->3", "3->4", "4->5", ... ]
    ///   level 1: ["0->16", "16->32", "32->48", "48->64", ... ]
    ///   level 2: ["0->256", "256->512", "512->768", ... ]
    ///   level 3: ["0->4096"]
    fn test() -> Leveled<String> {
        let mut l = Leveled::new();
        let mut i_1 = 0;