Skip to content

Commit 97cba0a

Browse files
authored
Merge pull request #83 from innoave/doc/broken-links-to-spec-in-assertion-traits
doc: fix broken links to `Spec` in doc comments of assertion traits
2 parents eb6ba3b + a337479 commit 97cba0a

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/assertions.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4027,6 +4027,8 @@ pub trait AssertElements<T> {
40274027
///
40284028
/// assert_that!(subject).single_element().is_equal_to("single");
40294029
/// ```
4030+
///
4031+
/// [`Spec`]: crate::spec::Spec
40304032
#[track_caller]
40314033
fn single_element(self) -> Self::SingleElement;
40324034

@@ -4049,6 +4051,8 @@ pub trait AssertElements<T> {
40494051
/// .single_element()
40504052
/// .is_equal_to("three");
40514053
/// ```
4054+
///
4055+
/// [`Spec`]: crate::spec::Spec
40524056
#[track_caller]
40534057
fn filtered_on<C>(self, condition: C) -> Self::MultipleElements
40544058
where
@@ -4150,6 +4154,8 @@ pub trait AssertOrderedElements {
41504154
///
41514155
/// assert_that!(subject).first_element().is_equal_to("first");
41524156
/// ```
4157+
///
4158+
/// [`Spec`]: crate::spec::Spec
41534159
#[track_caller]
41544160
fn first_element(self) -> Self::SingleElement;
41554161

@@ -4165,6 +4171,8 @@ pub trait AssertOrderedElements {
41654171
///
41664172
/// assert_that!(subject).last_element().is_equal_to("third");
41674173
/// ```
4174+
///
4175+
/// [`Spec`]: crate::spec::Spec
41684176
#[track_caller]
41694177
fn last_element(self) -> Self::SingleElement;
41704178

@@ -4184,6 +4192,8 @@ pub trait AssertOrderedElements {
41844192
/// assert_that!(subject).nth_element(1).is_equal_to("second");
41854193
/// assert_that!(subject).nth_element(2).is_equal_to("third");
41864194
/// ```
4195+
///
4196+
/// [`Spec`]: crate::spec::Spec
41874197
#[track_caller]
41884198
fn nth_element(self, n: usize) -> Self::SingleElement;
41894199

@@ -4201,6 +4211,8 @@ pub trait AssertOrderedElements {
42014211
/// .elements_at([0, 2, 4])
42024212
/// .contains_exactly(["one", "three", "five"]);
42034213
/// ```
4214+
///
4215+
/// [`Spec`]: crate::spec::Spec
42044216
#[track_caller]
42054217
fn elements_at(self, indices: impl IntoIterator<Item = usize>) -> Self::MultipleElements;
42064218
}

0 commit comments

Comments
 (0)