]> git.lizzy.rs Git - rust.git/commit
doc/rust.md: Demonstrate the `f::<T>()` syntax more often
authorBenjamin Herr <ben@0x539.de>
Sat, 2 Mar 2013 00:07:01 +0000 (01:07 +0100)
committerBenjamin Herr <ben@0x539.de>
Sat, 2 Mar 2013 00:07:01 +0000 (01:07 +0100)
commit382143abd871d9b2c73df08ffd2928c44f314ab3
treec531788e4dd219aac9546cdec8eb2103d0f7e331
parentcab8ec242bc34dceb8aded6ec71ddf17e5966d86
doc/rust.md: Demonstrate the `f::<T>()` syntax more often

The "Generic functions" subsection mentions that generic functions are
instantiated based on context, so let's also mention right away (with a
link to the #paths section) that an explicit form is available.

This also adds an example to the function call expression section that
explicitly instantiates a generic function.
doc/rust.md