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 16727d9 commit 3310bd8Copy full SHA for 3310bd8
src/libcore/str.rs
@@ -1800,7 +1800,8 @@ mod unsafe {
1800
return ::unsafe::transmute(v);
1801
}
1802
1803
- /// 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
1804
+ /// without copying
1805
unsafe fn from_buf_len_nocopy(buf: &a / *u8, len: uint) -> &a / str {
1806
let v = (*buf, len + 1);
1807
assert is_utf8(::unsafe::reinterpret_cast(v));
0 commit comments