Skip to content

Commit

Permalink
Update documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rouven Spreckels committed Nov 26, 2017
1 parent 89c1bd7 commit 1fdcdac
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
[Documentation]: https://docs.rs/signifix/badge.svg
[License]: https://img.shields.io/crates/l/signifix.svg

**Works now on stable Rust**

Formats a given number in one of the three Signifix notations
[as defined below](#signifix-notations) by determining

Expand Down
6 changes: 3 additions & 3 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Version 0.8.0 (2017-09-26)
# Version 0.8.0 (2017-11-26)

* Compiles on stable Rust by reimplementing the `try_from` feature.
* Works now on stable Rust by reimplementing the `try_from` feature.
* Added `nightly` feature enabling `try_from` and `i128_type` support. This
replaces the reimplementation of `try_from`.
replaces the reimplementation of `try_from` with a reexport.
* Simplified code by using `binary_search_by()`.

# Version 0.7.0 (2017-07-10)
Expand Down
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,8 @@ use std::cmp::Ordering;
#[cfg(feature = "nightly")]
pub use std::convert::{TryInto, TryFrom};

/// Required until the `try_from` feature stabilised.
///
/// An attempted conversion that consumes `self`, which may or may not be
/// expensive.
#[cfg(not(feature = "nightly"))]
Expand All @@ -414,6 +416,8 @@ pub trait TryInto<T>: Sized {
fn try_into(self) -> result::Result<T, Self::Error>;
}

/// Required until the `try_from` feature stabilised.
///
/// Attempt to construct `Self` via a conversion.
#[cfg(not(feature = "nightly"))]
pub trait TryFrom<T>: Sized {
Expand Down

0 comments on commit 1fdcdac

Please sign in to comment.