Skip to content

Commit 7bd4fae

Browse files
committed
---
yaml --- r: 14251 b: refs/heads/try c: 4d788be h: refs/heads/master i: 14249: bd5b4c0 14247: bf2d555 v: v3
1 parent fdf2dba commit 7bd4fae

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 8d29e8705626e28d3bf96d194dd97311e1967995
5+
refs/heads/try: 4d788be80d98c792111f65605bb8853ab3cbdd4a
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/libcore/str.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ Function: from_cstr
194194
195195
Create a Rust string from a null-terminated C string
196196
*/
197-
unsafe fn from_cstr(cstr: sbuf) -> str {
197+
fn from_cstr(cstr: sbuf) -> str unsafe {
198198
let start = cstr;
199199
let curr = start;
200200
let i = 0u;
@@ -210,7 +210,7 @@ Function: from_cstr_len
210210
211211
Create a Rust string from a C string of the given length
212212
*/
213-
unsafe fn from_cstr_len(cstr: sbuf, len: uint) -> str {
213+
fn from_cstr_len(cstr: sbuf, len: uint) -> str unsafe {
214214
let buf: [u8] = [];
215215
vec::reserve(buf, len + 1u);
216216
vec::as_buf(buf) {|b| ptr::memcpy(b, cstr, len); }

0 commit comments

Comments
 (0)