Skip to content

Commit 4b19102

Browse files
author
Richard Dodd
committed
Add suggested fixes
1 parent 09fae93 commit 4b19102

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

markup5ever/build.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ fn main() {
4949
local_names_atom.atom(&local_name.to_ascii_lowercase());
5050
}
5151
local_names_atom
52-
.with_macro_doc("Takes a local name as a string and returns its key in the a string cache.")
52+
.with_macro_doc("Takes a local name as a string and returns its key in the string cache.")
5353
.write_to(&mut generated).unwrap();
5454

5555
// Create a string cache for namespace prefixes
@@ -66,7 +66,6 @@ fn main() {
6666
.write_to(&mut generated)
6767
.unwrap();
6868

69-
// T
7069
writeln!(generated, r#"
7170
/// Maps the input of `namespace_prefix!` to the output of `namespace_url!`.
7271
#[macro_export] macro_rules! ns {{

markup5ever/interface/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ impl QualName {
143143
}
144144
}
145145

146-
/// Take a reference as an `ExpandedName`, dropping the unresolved prefix.
146+
/// Take a reference of `self` as an `ExpandedName`, dropping the unresolved prefix.
147147
#[inline]
148148
pub fn expanded(&self) -> ExpandedName {
149149
ExpandedName {

markup5ever/rcdom.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//! This is sufficient as a static parse tree, but don't build a
1313
//! web browser using it. :)
1414
//!
15-
//! A DOM is a [tree structure] with ordered children that can be represented in an XML-like
15+
//! A DOM is a [tree structure] with ordered children that can be represented in an XML-like
1616
//! format. For example, the following graph
1717
//!
1818
//! ```text
@@ -29,9 +29,9 @@
2929
//! See the [document object model article on wikipedia][dom wiki] for more information.
3030
//!
3131
//! This implementation stores the information associated with each node once, and then hands out
32-
//! refs to children. The nodes themselves are reference-counted to avoid copy - you can create a
33-
//! new ref and then a node will outlive the document. Nodes own their children, but only have weak
34-
//! references to their parents.
32+
//! refs to children. The nodes themselves are reference-counted to avoid copying - you can create
33+
//! a new ref and then a node will outlive the document. Nodes own their children, but only have
34+
//! weak references to their parents.
3535
//!
3636
//! [tree structure]: https://en.wikipedia.org/wiki/Tree_(data_structure)
3737
//! [dom wiki]: https://en.wikipedia.org/wiki/Document_Object_Model
@@ -60,7 +60,7 @@ pub enum NodeData {
6060
/// The `Document` itself - the root node of a HTML document.
6161
Document,
6262

63-
/// A `DOCTYPE` with name, public id, and system id. See
63+
/// A `DOCTYPE` with name, public id, and system id. See
6464
/// [document type declaration on wikipedia][dtd wiki].
6565
///
6666
/// [dtd wiki]: https://en.wikipedia.org/wiki/Document_type_declaration

0 commit comments

Comments
 (0)