]> git.lizzy.rs Git - rust.git/commit
Rename and namespace `FPCategory`
authorTobias Bucher <tobiasbucher5991@gmail.com>
Mon, 22 Dec 2014 21:50:57 +0000 (22:50 +0100)
committerTobias Bucher <tobiasbucher5991@gmail.com>
Tue, 23 Dec 2014 12:42:09 +0000 (13:42 +0100)
commit16f01cc13f6a092873096c44eed546561b88d245
tree878df21a28ad63754019346cf9a390bb0bb9eabe
parent658529467d9d69ac9e09cacf98a6d61d781c2c76
Rename and namespace `FPCategory`

Rename `FPCategory` to `FpCategory` and `Fp* to `*` in order to adhere to the
naming convention

This is a [breaking-change].

Existing code like this:
```
use std::num::{FPCategory, FPNaN};
```
should be adjusted to this:
```
use std::num::FpCategory as Fp
```

In the following code you can use the constants `Fp::Nan`, `Fp::Normal`, etc.
src/libcore/fmt/float.rs
src/libcore/num/f32.rs
src/libcore/num/f64.rs
src/libcore/num/mod.rs
src/libserialize/json.rs
src/libstd/num/f32.rs
src/libstd/num/f64.rs
src/libstd/num/mod.rs
src/libstd/num/strconv.rs