Skip to content

Commit a043a4e

Browse files
committed
Travis fix, README update, version bump
1 parent 43ce9c8 commit a043a4e

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

.travis.yml

-2
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,3 @@ after_success: |
1717
sudo pip install ghp-import &&
1818
ghp-import -n target/doc &&
1919
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
20-
21-
language: lets us specify rust, which for now defaults to the latest nightly.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "primes"
4-
version = "0.1.4"
4+
version = "0.1.5"
55
authors = ["Wendell Smith <wendellwsmith@gmail.com>"]
66
license="BSD-3-Clause"
77

README.md

+16-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,24 @@ primes
33

44
[![Build Status](https://travis-ci.org/wackywendell/primes.svg)](https://travis-ci.org/wackywendell/primes)
55

6-
[Full Documentation](http://www.rust-ci.org/wackywendell/primes/doc/primes/)
6+
[Full Documentation](http://wackywendell.github.io/primes)
77

88
A prime generator for Rust.
99

1010
This package is available on [crates.io](git@github.com:wackywendell/primes.git) as `primes`.
1111

12-
This package provides an iterator over `all` primes, generating them lazily as it goes: see `PrimeSet::iter()`.
12+
This package provides an iterator over `all` primes, generating them lazily as it goes.
13+
14+
The simplest usage is simply to create an `Iterator`:
15+
16+
```
17+
use primes::PrimeSet;
18+
19+
let mut pset = PrimeSet::new();
20+
21+
for (ix, n) in pset.iter().enumerate().take(10) {
22+
println!("Prime {}: {}", ix, n);
23+
}
24+
```
25+
26+
For more examples, see [the full documentation](http://wackywendell.github.io/primes)!

0 commit comments

Comments
 (0)