diff options
author | Matt Brubeck <mbrubeck@limpet.net> | 2014-09-17 14:05:21 -0700 |
---|---|---|
committer | Matt Brubeck <mbrubeck@limpet.net> | 2014-09-17 14:46:37 -0700 |
commit | a939cc50bb5c8f97651a493067a78bc62f887ea8 (patch) | |
tree | 3750f1a225ff56bd37b409bd6282024e3d24fe0d /components/util/range.rs | |
parent | 787a68336524fb9585922b9ed319a8b194fb8ee1 (diff) | |
download | servo-a939cc50bb5c8f97651a493067a78bc62f887ea8.tar.gz servo-a939cc50bb5c8f97651a493067a78bc62f887ea8.zip |
Fix doctest errors in rustdoc comments
Mostly this disables doctest for comments that are not actually tests.
Diffstat (limited to 'components/util/range.rs')
-rw-r--r-- | components/util/range.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/components/util/range.rs b/components/util/range.rs index ffea08e6264..123bd42a280 100644 --- a/components/util/range.rs +++ b/components/util/range.rs @@ -137,7 +137,7 @@ impl<I: RangeIndex> Range<I> { /// Create a new range from beginning and length offsets. This could be /// denoted as `[begin, begin + length)`. /// - /// ~~~ + /// ~~~ignore /// |-- begin ->|-- length ->| /// | | | /// <- o - - - - - +============+ - - - -> @@ -154,7 +154,7 @@ impl<I: RangeIndex> Range<I> { /// The index offset to the beginning of the range. /// - /// ~~~ + /// ~~~ignore /// |-- begin ->| /// | | /// <- o - - - - - +============+ - - - -> @@ -164,7 +164,7 @@ impl<I: RangeIndex> Range<I> { /// The index offset from the beginning to the end of the range. /// - /// ~~~ + /// ~~~ignore /// |-- length ->| /// | | /// <- o - - - - - +============+ - - - -> @@ -174,7 +174,7 @@ impl<I: RangeIndex> Range<I> { /// The index offset to the end of the range. /// - /// ~~~ + /// ~~~ignore /// |--------- end --------->| /// | | /// <- o - - - - - +============+ - - - -> @@ -184,7 +184,7 @@ impl<I: RangeIndex> Range<I> { /// `true` if the index is between the beginning and the end of the range. /// - /// ~~~ + /// ~~~ignore /// false true false /// | | | /// <- o - - + - - +=====+======+ - + - -> @@ -202,7 +202,7 @@ impl<I: RangeIndex> Range<I> { /// Shift the entire range by the supplied index delta. /// - /// ~~~ + /// ~~~ignore /// |-- delta ->| /// | | /// <- o - +============+ - - - - - | - - - -> @@ -216,7 +216,7 @@ impl<I: RangeIndex> Range<I> { /// Extend the end of the range by the supplied index delta. /// - /// ~~~ + /// ~~~ignore /// |-- delta ->| /// | | /// <- o - - - - - +====+ - - - - - | - - - -> @@ -230,7 +230,7 @@ impl<I: RangeIndex> Range<I> { /// Move the end of the range to the target index. /// - /// ~~~ + /// ~~~ignore /// target /// | /// <- o - - - - - +====+ - - - - - | - - - -> |