Skip to content

Commit 0b36e9d

Browse files
committed
num: Switch field privacy as necessary
1 parent b9b0ed5 commit 0b36e9d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/libnum/bigint.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ A `BigUint`-typed value `BigUint { data: ~[a, b, c] }` represents a number
8686
*/
8787
#[deriving(Clone)]
8888
pub struct BigUint {
89-
priv data: Vec<BigDigit>
89+
data: Vec<BigDigit>
9090
}
9191

9292
impl Eq for BigUint {
@@ -863,8 +863,8 @@ impl Neg<Sign> for Sign {
863863
/// A big signed integer type.
864864
#[deriving(Clone)]
865865
pub struct BigInt {
866-
priv sign: Sign,
867-
priv data: BigUint
866+
sign: Sign,
867+
data: BigUint
868868
}
869869

870870
impl Eq for BigInt {

src/libnum/rational.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ use bigint::{BigInt, BigUint, Sign, Plus, Minus};
2222
#[deriving(Clone)]
2323
#[allow(missing_doc)]
2424
pub struct Ratio<T> {
25-
priv numer: T,
26-
priv denom: T
25+
numer: T,
26+
denom: T
2727
}
2828

2929
/// Alias for a `Ratio` of machine-sized integers.

0 commit comments

Comments
 (0)