wrap long line

This commit is contained in:
Niko Matsakis
2012-08-23 18:56:56 -07:00
parent a08f3a7d4d
commit d320848bf7
+2 -1
View File
@@ -1800,7 +1800,8 @@ unsafe fn from_buf_len(buf: *const u8, len: uint) -> ~str {
return ::unsafe::transmute(v);
}
/// Create a Rust string from a *u8 buffer of the given length without copying
/// Create a Rust string from a *u8 buffer of the given length
/// without copying
unsafe fn from_buf_len_nocopy(buf: &a / *u8, len: uint) -> &a / str {
let v = (*buf, len + 1);
assert is_utf8(::unsafe::reinterpret_cast(v));