aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/conversions.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2024-12-29 11:37:57 +0100
committerGitHub <noreply@github.com>2024-12-29 10:37:57 +0000
commit93ae8d22fce54bdff06bdc96ef089307fcc997ab (patch)
tree11e7f3d7da04c957e150d4e1f552b6ebd182a98e /components/script/conversions.rs
parent3aa9e00e4e25242f8dd9f6200915df081c0b3f8a (diff)
downloadservo-93ae8d22fce54bdff06bdc96ef089307fcc997ab.tar.gz
servo-93ae8d22fce54bdff06bdc96ef089307fcc997ab.zip
Correct a variety of documentation issues (#34786)
Fix some warnings in documentation as well as some faulty documentation introduced in #34776. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'components/script/conversions.rs')
-rw-r--r--components/script/conversions.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/conversions.rs b/components/script/conversions.rs
index 01186119ff5..c9cd43f5e58 100644
--- a/components/script/conversions.rs
+++ b/components/script/conversions.rs
@@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
-/// A version of the Into<T> trait from the standard library that can be used
+/// A version of the `Into<T>` trait from the standard library that can be used
/// to convert between two types that are not defined in the script crate.
/// This is intended to be used on dict/enum types generated from WebIDL once
/// those types are moved out of the script crate.
@@ -10,7 +10,7 @@ pub trait Convert<T> {
fn convert(self) -> T;
}
-/// A version of the TryInto<T> trait from the standard library that can be used
+/// A version of the `TryInto<T>` trait from the standard library that can be used
/// to convert between two types that are not defined in the script crate.
/// This is intended to be used on dict/enum types generated from WebIDL once
/// those types are moved out of the script crate.