File tree 3 files changed +17
-5
lines changed
3 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -17,5 +17,3 @@ after_success: |
17
17
sudo pip install ghp-import &&
18
18
ghp-import -n target/doc &&
19
19
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.
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
3
3
name = " primes"
4
- version = " 0.1.4 "
4
+ version = " 0.1.5 "
5
5
authors = [" Wendell Smith <wendellwsmith@gmail.com>" ]
6
6
license =" BSD-3-Clause"
7
7
Original file line number Diff line number Diff line change 3
3
4
4
[ ![ Build Status] ( https://travis-ci.org/wackywendell/primes.svg )] ( https://travis-ci.org/wackywendell/primes )
5
5
6
- [ Full Documentation] ( http://www.rust-ci.org/wackywendell/ primes/doc/primes/ )
6
+ [ Full Documentation] ( http://wackywendell.github.io/ primes )
7
7
8
8
A prime generator for Rust.
9
9
10
10
This package is available on [ crates.io] ( git@github.com:wackywendell/primes.git ) as ` primes ` .
11
11
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 ) !
You can’t perform that action at this time.
0 commit comments