Skip to content
This repository was archived by the owner on Jun 16, 2020. It is now read-only.

Commit 36790be

Browse files
committed
Fix markdown syntax to be compatible with the pulldown parser.
This fixes warnings like the following when doing "cargo doc": WARNING: documentation for this crate may be rendered differently using the new Pulldown renderer. See rust-lang/rust#44229 for details. WARNING: rendering difference in `External types as defined at https://webassembly.g ... .html#external-types` --> src/parser.rs:104:0 /html[0]/body[1]/p[0] Text differs: expected: `... https://webassembly.github.io/spec/syntax/types.html#external-types` found: `...`
1 parent 0991ed3 commit 36790be

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/parser.rs

+12-4
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ pub enum CustomSectionKind {
4141
Linking,
4242
}
4343

44-
/// Section code as defined at https://webassembly.github.io/spec/binary/modules.html#sections
44+
/// Section code as defined [here].
45+
///
46+
/// [here]: https://webassembly.github.io/spec/binary/modules.html#sections
4547
#[derive(Debug,Copy,Clone,PartialEq,Eq,PartialOrd,Ord)]
4648
pub enum SectionCode<'a> {
4749
Custom {
@@ -61,7 +63,9 @@ pub enum SectionCode<'a> {
6163
Data, // Data segments
6264
}
6365

64-
/// Types as defined at https://webassembly.github.io/spec/syntax/types.html#types
66+
/// Types as defined [here].
67+
///
68+
/// [here]: https://webassembly.github.io/spec/syntax/types.html#types
6569
#[derive(Debug,Copy,Clone,PartialEq,Eq)]
6670
pub enum Type {
6771
I32,
@@ -99,7 +103,9 @@ pub enum NameEntry<'a> {
99103
Local(Vec<LocalName<'a>>),
100104
}
101105

102-
/// External types as defined at https://webassembly.github.io/spec/syntax/types.html#external-types
106+
/// External types as defined [here].
107+
///
108+
/// [here]: https://webassembly.github.io/spec/syntax/types.html#external-types
103109
#[derive(Debug, Copy, Clone)]
104110
pub enum ExternalKind {
105111
Function,
@@ -281,7 +287,9 @@ impl Ieee64 {
281287
}
282288
}
283289

284-
/// Instructions as defined at https://webassembly.github.io/spec/binary/instructions.html
290+
/// Instructions as defined [here].
291+
///
292+
/// [here]: https://webassembly.github.io/spec/binary/instructions.html
285293
#[derive(Debug)]
286294
pub enum Operator<'a> {
287295
Unreachable,

0 commit comments

Comments
 (0)