]> git.lizzy.rs Git - rust.git/commit
Make Index trait example clearer
authorVolker Mische <volker.mische@gmail.com>
Fri, 16 Jan 2015 20:29:43 +0000 (21:29 +0100)
committerSteve Klabnik <steve@steveklabnik.com>
Sat, 17 Jan 2015 15:51:07 +0000 (10:51 -0500)
commitf12e60a5c8bacd8fb43b503000c19187aa3b09c2
treea9701ca2ea5d9769c8cbb005c42cce73f655e1dc
parent0109ceaf827461d525ada1a71dcba909071d7cdc
Make Index trait example clearer

The example of the `Index` and `IndexMut` trait contained too much `Foo`.
It now contains a bit more `Bar` to make things clearer which parts are
defining the type of the index.
src/libcore/ops.rs