diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-08-23 18:56:56 -0700 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-08-23 18:56:56 -0700 |
| commit | d320848bf771c73db072d5149d9e4171d2d0a582 (patch) | |
| tree | fc34736fa008c39a8e166f0c75de99a4cae4741a | |
| parent | a08f3a7d4d937c2b26c8a29edabe7fb089d0b5f7 (diff) | |
| download | rust-d320848bf771c73db072d5149d9e4171d2d0a582.tar.gz rust-d320848bf771c73db072d5149d9e4171d2d0a582.zip | |
wrap long line
| -rw-r--r-- | src/libcore/str.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcore/str.rs b/src/libcore/str.rs index ec61ace2f13..d4c8afcd4b3 100644 --- a/src/libcore/str.rs +++ b/src/libcore/str.rs @@ -1800,7 +1800,8 @@ mod unsafe { 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)); |
