diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-10-17 16:04:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-17 16:04:10 -0500 |
commit | 0e62a5829b7c29ae2667a21a439aff1e89201bf3 (patch) | |
tree | 9732ccec4cccf1ebf7afa9027ad82d29ed064ea1 /components/script/dom/bindings | |
parent | 00e2a1c62a04ae337f9008dcea8e265edd2d3ef4 (diff) | |
parent | efc3683cc7ceff0cd8c8528a168a78d42fb1a0e8 (diff) | |
download | servo-0e62a5829b7c29ae2667a21a439aff1e89201bf3.tar.gz servo-0e62a5829b7c29ae2667a21a439aff1e89201bf3.zip |
Auto merge of #18924 - mbrubeck:doc, r=Manishearth
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.
---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes do not require tests because they are doc formatting changes only
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18924)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/bindings')
-rw-r--r-- | components/script/dom/bindings/callback.rs | 4 | ||||
-rw-r--r-- | components/script/dom/bindings/conversions.rs | 46 | ||||
-rw-r--r-- | components/script/dom/bindings/interface.rs | 2 | ||||
-rw-r--r-- | components/script/dom/bindings/root.rs | 2 | ||||
-rw-r--r-- | components/script/dom/bindings/settings_stack.rs | 8 | ||||
-rw-r--r-- | components/script/dom/bindings/utils.rs | 2 |
6 files changed, 32 insertions, 32 deletions
diff --git a/components/script/dom/bindings/callback.rs b/components/script/dom/bindings/callback.rs index 7a73ce60215..781ebd46466 100644 --- a/components/script/dom/bindings/callback.rs +++ b/components/script/dom/bindings/callback.rs @@ -230,10 +230,10 @@ pub struct CallSetup { old_compartment: *mut JSCompartment, /// The exception handling used for the call. handling: ExceptionHandling, - /// https://heycam.github.io/webidl/#es-invoking-callback-functions + /// <https://heycam.github.io/webidl/#es-invoking-callback-functions> /// steps 8 and 18.2. entry_script: Option<AutoEntryScript>, - /// https://heycam.github.io/webidl/#es-invoking-callback-functions + /// <https://heycam.github.io/webidl/#es-invoking-callback-functions> /// steps 9 and 18.1. incumbent_script: Option<AutoIncumbentScript>, } diff --git a/components/script/dom/bindings/conversions.rs b/components/script/dom/bindings/conversions.rs index e27813d20f9..68318c53d70 100644 --- a/components/script/dom/bindings/conversions.rs +++ b/components/script/dom/bindings/conversions.rs @@ -6,31 +6,31 @@ //! //! | IDL type | Argument type | Return type | //! |-------------------------|-----------------|----------------| -//! | any | `JSVal` | -//! | boolean | `bool` | -//! | byte | `i8` | -//! | octet | `u8` | -//! | short | `i16` | -//! | unsigned short | `u16` | -//! | long | `i32` | -//! | unsigned long | `u32` | -//! | long long | `i64` | -//! | unsigned long long | `u64` | -//! | unrestricted float | `f32` | -//! | float | `Finite<f32>` | -//! | unrestricted double | `f64` | -//! | double | `Finite<f64>` | -//! | DOMString | `DOMString` | -//! | USVString | `USVString` | -//! | ByteString | `ByteString` | -//! | object | `*mut JSObject` | +//! | any | `JSVal` | | +//! | boolean | `bool` | | +//! | byte | `i8` | | +//! | octet | `u8` | | +//! | short | `i16` | | +//! | unsigned short | `u16` | | +//! | long | `i32` | | +//! | unsigned long | `u32` | | +//! | long long | `i64` | | +//! | unsigned long long | `u64` | | +//! | unrestricted float | `f32` | | +//! | float | `Finite<f32>` | | +//! | unrestricted double | `f64` | | +//! | double | `Finite<f64>` | | +//! | DOMString | `DOMString` | | +//! | USVString | `USVString` | | +//! | ByteString | `ByteString` | | +//! | object | `*mut JSObject` | | //! | interface types | `&T` | `DomRoot<T>` | //! | dictionary types | `&T` | *unsupported* | -//! | enumeration types | `T` | -//! | callback function types | `Rc<T>` | -//! | nullable types | `Option<T>` | -//! | sequences | `Vec<T>` | -//! | union types | `T` | +//! | enumeration types | `T` | | +//! | callback function types | `Rc<T>` | | +//! | nullable types | `Option<T>` | | +//! | sequences | `Vec<T>` | | +//! | union types | `T` | | use dom::bindings::error::{Error, Fallible}; use dom::bindings::inheritance::Castable; diff --git a/components/script/dom/bindings/interface.rs b/components/script/dom/bindings/interface.rs index 3cb9aab9f72..75b770c4141 100644 --- a/components/script/dom/bindings/interface.rs +++ b/components/script/dom/bindings/interface.rs @@ -548,7 +548,7 @@ unsafe extern "C" fn has_instance_hook(cx: *mut JSContext, } /// Return whether a value is an instance of a given prototype. -/// http://heycam.github.io/webidl/#es-interface-hasinstance +/// <http://heycam.github.io/webidl/#es-interface-hasinstance> unsafe fn has_instance( cx: *mut JSContext, interface_object: HandleObject, diff --git a/components/script/dom/bindings/root.rs b/components/script/dom/bindings/root.rs index 87525900448..e2c474cafd5 100644 --- a/components/script/dom/bindings/root.rs +++ b/components/script/dom/bindings/root.rs @@ -712,7 +712,7 @@ impl<T: DomObject> LayoutDom<T> { } } -/// Helper trait for safer manipulations of Option<Heap<T>> values. +/// Helper trait for safer manipulations of `Option<Heap<T>>` values. pub trait OptionalHeapSetter { type Value; /// Update this optional heap value with a new value. diff --git a/components/script/dom/bindings/settings_stack.rs b/components/script/dom/bindings/settings_stack.rs index fb708d1b235..b540b989bc4 100644 --- a/components/script/dom/bindings/settings_stack.rs +++ b/components/script/dom/bindings/settings_stack.rs @@ -41,7 +41,7 @@ pub struct AutoEntryScript { } impl AutoEntryScript { - /// https://html.spec.whatwg.org/multipage/#prepare-to-run-script + /// <https://html.spec.whatwg.org/multipage/#prepare-to-run-script> pub fn new(global: &GlobalScope) -> Self { STACK.with(|stack| { trace!("Prepare to run script with {:p}", global); @@ -58,7 +58,7 @@ impl AutoEntryScript { } impl Drop for AutoEntryScript { - /// https://html.spec.whatwg.org/multipage/#clean-up-after-running-script + /// <https://html.spec.whatwg.org/multipage/#clean-up-after-running-script> fn drop(&mut self) { STACK.with(|stack| { let mut stack = stack.borrow_mut(); @@ -96,7 +96,7 @@ pub struct AutoIncumbentScript { } impl AutoIncumbentScript { - /// https://html.spec.whatwg.org/multipage/#prepare-to-run-a-callback + /// <https://html.spec.whatwg.org/multipage/#prepare-to-run-a-callback> pub fn new(global: &GlobalScope) -> Self { // Step 2-3. unsafe { @@ -120,7 +120,7 @@ impl AutoIncumbentScript { } impl Drop for AutoIncumbentScript { - /// https://html.spec.whatwg.org/multipage/#clean-up-after-running-a-callback + /// <https://html.spec.whatwg.org/multipage/#clean-up-after-running-a-callback> fn drop(&mut self) { STACK.with(|stack| { // Step 4. diff --git a/components/script/dom/bindings/utils.rs b/components/script/dom/bindings/utils.rs index 4a343cbb115..5ecca038de9 100644 --- a/components/script/dom/bindings/utils.rs +++ b/components/script/dom/bindings/utils.rs @@ -194,7 +194,7 @@ pub unsafe fn find_enum_value<'a, T>(cx: *mut JSContext, } /// Returns wether `obj` is a platform object -/// https://heycam.github.io/webidl/#dfn-platform-object +/// <https://heycam.github.io/webidl/#dfn-platform-object> pub fn is_platform_object(obj: *mut JSObject) -> bool { unsafe { // Fast-path the common case |