Skip to content

Commit 114c2c9

Browse files
committed
fixup alloc::{option,result} docs
1 parent 433749f commit 114c2c9

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

library/alloc/src/option.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@
392392
//! [`Option`] of a collection of each contained value of the original
393393
//! [`Option`] values, or [`None`] if any of the elements was [`None`].
394394
//!
395-
//! [impl-FromIterator]: Option#impl-FromIterator%3COption%3CA%3E%3E
395+
//! [impl-FromIterator]: Option#impl-FromIterator%3COption%3CA%3E%3E-for-Option%3CV%3E
396396
//!
397397
//! ```
398398
//! let v = [Some(2), Some(4), None, Some(8)];
@@ -408,8 +408,8 @@
408408
//! to provide the [`product`][Iterator::product] and
409409
//! [`sum`][Iterator::sum] methods.
410410
//!
411-
//! [impl-Product]: Option#impl-Product%3COption%3CU%3E%3E
412-
//! [impl-Sum]: Option#impl-Sum%3COption%3CU%3E%3E
411+
//! [impl-Product]: Option#impl-Product%3COption%3CU%3E%3E-for-Option%3CT%3E
412+
//! [impl-Sum]: Option#impl-Sum%3COption%3CU%3E%3E-for-Option%3CT%3E
413413
//!
414414
//! ```
415415
//! let v = [None, Some(1), Some(2), Some(3)];

library/alloc/src/result.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@
281281
//! * [`expect_err`] panics with a provided custom message
282282
//! * [`unwrap_err`] panics with a generic message
283283
//!
284-
//! [`Debug`]: core::fmt::Debug
284+
//! [`Debug`]: crate::fmt::Debug
285285
//! [`expect_err`]: Result::expect_err
286286
//! [`unwrap_err`]: Result::unwrap_err
287287
//!
@@ -459,7 +459,7 @@
459459
//! [`Result`] of a collection of each contained value of the original
460460
//! [`Result`] values, or [`Err`] if any of the elements was [`Err`].
461461
//!
462-
//! [impl-FromIterator]: Result#impl-FromIterator%3CResult%3CA%2C%20E%3E%3E
462+
//! [impl-FromIterator]: Result#impl-FromIterator%3CResult%3CA%2C%20E%3E%3E-for-Result%3CV%2C%20E%3E
463463
//!
464464
//! ```
465465
//! let v = [Ok(2), Ok(4), Err("err!"), Ok(8)];
@@ -475,8 +475,8 @@
475475
//! to provide the [`product`][Iterator::product] and
476476
//! [`sum`][Iterator::sum] methods.
477477
//!
478-
//! [impl-Product]: Result#impl-Product%3CResult%3CU%2C%20E%3E%3E
479-
//! [impl-Sum]: Result#impl-Sum%3CResult%3CU%2C%20E%3E%3E
478+
//! [impl-Product]: Result#impl-Product%3CResult%3CU%2C%20E%3E%3E-for-Result%3CT%2C%20E%3E
479+
//! [impl-Sum]: Result#impl-Sum%3CResult%3CU%2C%20E%3E%3E-for-Result%3CT%2C%20E%3E
480480
//!
481481
//! ```
482482
//! let v = [Err("error!"), Ok(1), Ok(2), Ok(3), Err("foo")];

0 commit comments

Comments
 (0)