File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
- refs/heads/try: 4063802f64aec76a8cd56c1332b23b72cd3efefe
5
+ refs/heads/try: eb935b8fcbe1ceb128797aa574e0c1a332a6a14e
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -1531,9 +1531,9 @@ interop, without copying the original string.
1531
1531
1532
1532
# Example
1533
1533
1534
- ```
1534
+ ~~~
1535
1535
let s = str::as_buf(\" PATH\" , { |path_buf| libc::getenv(path_buf) });
1536
- ```
1536
+ ~~~
1537
1537
" ]
1538
1538
fn as_c_str < T > ( s : str , f : fn ( * libc:: c_char ) -> T ) -> T unsafe {
1539
1539
as_buf ( s) { |buf| f ( buf as * libc:: c_char ) }
You can’t perform that action at this time.
0 commit comments