Skip to content

Commit 3a58a27

Browse files
committed
---
yaml --- r: 229035 b: refs/heads/try c: 06ded9c h: refs/heads/master i: 229033: 86b0c2c 229031: bf81b12 v: v3
1 parent 9e2bea8 commit 3a58a27

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: 0a36ea7db130dfaa6012d76ccf80b9b77e15796b
4+
refs/heads/try: 06ded9c04e23ceaa41a4a5d01dd54432aaafd0db
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/doc/tarpl/vec-drain.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ untouched. For now we'll only implement the "basic" full-range version.
88
use std::marker::PhantomData;
99
1010
struct Drain<'a, T: 'a> {
11+
// Need to bound the lifetime here, so we do it with `&'a mut Vec<T>`
12+
// because that's semantically what we contain. We're "just" calling
13+
// `pop()` and `remove(0)`.
1114
vec: PhantomData<&'a mut Vec<T>>
1215
start: *const T,
1316
end: *const T,

0 commit comments

Comments
 (0)