From d320848bf771c73db072d5149d9e4171d2d0a582 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Thu, 23 Aug 2012 18:56:56 -0700 Subject: [PATCH] wrap long line --- src/libcore/str.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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));