From 21de99de8770e1d887b4cf7b5a99ede027125388 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Mon, 16 Mar 2020 22:35:27 +0100 Subject: [PATCH] Remove non-building doctests (#578) --- lib/binding_rust/bindings.rs | 4 ++-- lib/binding_rust/lib.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/binding_rust/bindings.rs b/lib/binding_rust/bindings.rs index e1c3ceac..cba87fa3 100644 --- a/lib/binding_rust/bindings.rs +++ b/lib/binding_rust/bindings.rs @@ -172,9 +172,9 @@ extern "C" { #[doc = " the given ranges must be ordered from earliest to latest in the document,"] #[doc = " and they must not overlap. That is, the following must hold for all"] #[doc = " `i` < `length - 1`:"] - #[doc = ""] + #[doc = " ```text"] #[doc = " ranges[i].end_byte <= ranges[i + 1].start_byte"] - #[doc = ""] + #[doc = " ```"] #[doc = " If this requirement is not satisfied, the operation will fail, the ranges"] #[doc = " will not be assigned, and this function will return `false`. On success,"] #[doc = " this function returns `true`"] diff --git a/lib/binding_rust/lib.rs b/lib/binding_rust/lib.rs index bf732faa..02be62f6 100644 --- a/lib/binding_rust/lib.rs +++ b/lib/binding_rust/lib.rs @@ -541,9 +541,9 @@ impl Parser { /// the given ranges must be ordered from earliest to latest in the document, /// and they must not overlap. That is, the following must hold for all /// `i` < `length - 1`: - /// + /// ```text /// ranges[i].end_byte <= ranges[i + 1].start_byte - /// + /// ``` /// If this requirement is not satisfied, method will panic. pub fn set_included_ranges<'a>( &mut self,