std: Mark some functions as pure

This commit is contained in:
Chris Peterson
2012-12-23 14:38:01 -08:00
parent 6d8621ae7f
commit ffaa477368
4 changed files with 12 additions and 12 deletions

View File

@@ -135,7 +135,7 @@ pub fn set<T: Copy>(t: CVec<T>, ofs: uint, v: T) {
*/
/// Returns the length of the vector
pub fn len<T>(t: CVec<T>) -> uint {
pub pure fn len<T>(t: CVec<T>) -> uint {
return (*t).len;
}