Skip to content

Commit ea13b6f

Browse files
committed
---
yaml --- r: 7076 b: refs/heads/master c: 7806180 h: refs/heads/master v: v3
1 parent 2e20830 commit ea13b6f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

[refs]

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: ae225e2b6c8dfe7a24444bd5b11b8b21df7d5f9d
2+
refs/heads/master: 7806180557d971b1292249f3cad92444c05cd77e

trunk/src/libcore/uint.rs

+7
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@ pure fn ge(x: uint, y: uint) -> bool { ret x >= y; }
103103
/* Predicate: gt */
104104
pure fn gt(x: uint, y: uint) -> bool { ret x > y; }
105105

106+
/*
107+
Function: hash
108+
109+
Produce a uint suitable for use in a hash table
110+
*/
111+
fn hash(x: uint) -> uint { ret x; }
112+
106113
/*
107114
Function: range
108115

0 commit comments

Comments
 (0)