We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 555e0af commit 2262157Copy full SHA for 2262157
library/alloc/src/borrow.rs
@@ -145,11 +145,11 @@ where
145
/// ```
146
/// use std::borrow::Cow;
147
///
148
-/// struct Items<'a, X: 'a> where [X]: ToOwned<Owned = Vec<X>> {
+/// struct Items<'a, X> where [X]: ToOwned<Owned = Vec<X>> {
149
/// values: Cow<'a, [X]>,
150
/// }
151
152
-/// impl<'a, X: Clone + 'a> Items<'a, X> where [X]: ToOwned<Owned = Vec<X>> {
+/// impl<'a, X: Clone> Items<'a, X> where [X]: ToOwned<Owned = Vec<X>> {
153
/// fn new(v: Cow<'a, [X]>) -> Self {
154
/// Items { values: v }
155
library/core/src/fmt/mod.rs
@@ -2283,12 +2283,12 @@ impl<'a> Formatter<'a> {
2283
/// ```rust
2284
/// use std::fmt;
2285
2286
- /// struct Arm<'a, L: 'a, R: 'a>(&'a (L, R));
2287
- /// struct Table<'a, K: 'a, V: 'a>(&'a [(K, V)], V);
+ /// struct Arm<'a, L, R>(&'a (L, R));
+ /// struct Table<'a, K, V>(&'a [(K, V)], V);
2288
2289
/// impl<'a, L, R> fmt::Debug for Arm<'a, L, R>
2290
/// where
2291
- /// L: 'a + fmt::Debug, R: 'a + fmt::Debug
+ /// L: fmt::Debug, R: fmt::Debug
2292
/// {
2293
/// fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
2294
/// L::fmt(&(self.0).0, fmt)?;
@@ -2299,7 +2299,7 @@ impl<'a> Formatter<'a> {
2299
2300
/// impl<'a, K, V> fmt::Debug for Table<'a, K, V>
2301
2302
- /// K: 'a + fmt::Debug, V: 'a + fmt::Debug
+ /// K: fmt::Debug, V: fmt::Debug
2303
2304
2305
/// fmt.debug_set()
0 commit comments