Skip to content

Commit f6baea2

Browse files
Fix external doc errors
1 parent b96fef8 commit f6baea2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libcore/result.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,10 +838,10 @@ impl<T: Default, E> Result<T, E> {
838838
///
839839
/// assert_eq!(1909, good_year);
840840
/// assert_eq!(0, bad_year);
841+
/// ```
841842
///
842843
/// [`parse`]: ../../std/primitive.str.html#method.parse
843844
/// [`FromStr`]: ../../std/str/trait.FromStr.html
844-
/// ```
845845
#[inline]
846846
#[stable(feature = "result_unwrap_or_default", since = "1.16.0")]
847847
pub fn unwrap_or_default(self) -> T {

src/tools/error_index_generator/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ impl Formatter for HTMLFormatter {
100100

101101
// Description rendered as markdown.
102102
match info.description {
103-
Some(ref desc) => write!(output, "{}", Markdown(desc))?,
103+
Some(ref desc) => write!(output, "{}", Markdown(desc, false))?,
104104
None => write!(output, "<p>No description.</p>\n")?,
105105
}
106106

0 commit comments

Comments
 (0)