From 961b6446b6123616b6f0b935813021e43da3ef18 Mon Sep 17 00:00:00 2001 From: Kevin Cantu Date: Thu, 23 Feb 2012 01:53:32 -0800 Subject: [PATCH] (core::str) rename ++ --- src/libcore/str.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcore/str.rs b/src/libcore/str.rs index e4df5bafad6..191be0f65de 100644 --- a/src/libcore/str.rs +++ b/src/libcore/str.rs @@ -1192,7 +1192,7 @@ fn substr_len_chars(s: str, byte_start: uint, byte_len: uint) -> uint { } /* -Function: substr_len_bytes +Function: substr_len As byte_len but for a substring @@ -1210,7 +1210,7 @@ Safety note: This function fails if `byte_offset` or `char_len` do not represent valid positions in `s` */ -fn substr_len_bytes(s: str, byte_offset: uint, char_len: uint) -> uint { +fn substr_len(s: str, byte_offset: uint, char_len: uint) -> uint { let i = byte_offset; let chars = 0u; while chars < char_len {