aboutsummaryrefslogtreecommitdiffstats
path: root/components/servo_arc/lib.rs
diff options
context:
space:
mode:
authorMatt Brubeck <mbrubeck@limpet.net>2017-10-17 09:39:20 -0700
committerMatt Brubeck <mbrubeck@limpet.net>2017-10-17 11:24:57 -0700
commitefc3683cc7ceff0cd8c8528a168a78d42fb1a0e8 (patch)
tree66fa87d72ee1c1254baf153756888c49c3d2692f /components/servo_arc/lib.rs
parentaa3122e7d1beb6c72868baf80d565b0760641b1d (diff)
downloadservo-efc3683cc7ceff0cd8c8528a168a78d42fb1a0e8.tar.gz
servo-efc3683cc7ceff0cd8c8528a168a78d42fb1a0e8.zip
Fix commonmark Markdown warnings in docs, part 1
Fixes warnings from rust-lang/rust#44229 when `--enable-commonmark` is passed to rustdoc. This is mostly a global find-and-replace for bare URIs on lines by themselves in doc comments.
Diffstat (limited to 'components/servo_arc/lib.rs')
-rw-r--r--components/servo_arc/lib.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/servo_arc/lib.rs b/components/servo_arc/lib.rs
index 7d17c26cd51..22d443a2db3 100644
--- a/components/servo_arc/lib.rs
+++ b/components/servo_arc/lib.rs
@@ -9,6 +9,7 @@
// except according to those terms.
//! Fork of Arc for Servo. This has the following advantages over std::Arc:
+//!
//! * We don't waste storage on the weak reference count.
//! * We don't do extra RMU operations to handle the possibility of weak references.
//! * We can experiment with arena allocation (todo).
@@ -16,7 +17,7 @@
//! * We have support for dynamically-sized types (see from_header_and_iter).
//! * We have support for thin arcs to unsized types (see ThinArc).
//!
-//! [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1360883
+//! [1]: https://bugzilla.mozilla.org/show_bug.cgi?id=1360883
// The semantics of Arc are alread documented in the Rust docs, so we don't
// duplicate those here.
@@ -83,7 +84,7 @@ const MAX_REFCOUNT: usize = (isize::MAX) as usize;
/// be thin or fat (which depends on whether or not T is sized). Given
/// that this is all a temporary hack, this restriction is fine for now.
///
-/// [1] https://github.com/rust-lang/rust/issues/27730
+/// [1]: https://github.com/rust-lang/rust/issues/27730
pub struct NonZeroPtrMut<T: ?Sized + 'static>(&'static mut T);
impl<T: ?Sized> NonZeroPtrMut<T> {
pub fn new(ptr: *mut T) -> Self {