Skip to content

Commit fc39e1b

Browse files
committed
Merge #340
340: Fix documentation formatting with commonmark enabled r=cuviper a=mbrubeck This makes formatting correct with the new pulldown-cmark Markdown parser (rust-lang/rust#44229).
2 parents 741a5a6 + 531c2a7 commit fc39e1b

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

bigint/src/bigint.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1366,15 +1366,15 @@ impl<R: Rng> RandBigInt for R {
13661366
impl BigInt {
13671367
/// Creates and initializes a BigInt.
13681368
///
1369-
/// The digits are in little-endian base 2^32.
1369+
/// The digits are in little-endian base 2<sup>32</sup>.
13701370
#[inline]
13711371
pub fn new(sign: Sign, digits: Vec<BigDigit>) -> BigInt {
13721372
BigInt::from_biguint(sign, BigUint::new(digits))
13731373
}
13741374

13751375
/// Creates and initializes a `BigInt`.
13761376
///
1377-
/// The digits are in little-endian base 2^32.
1377+
/// The digits are in little-endian base 2<sup>32</sup>.
13781378
#[inline]
13791379
pub fn from_biguint(mut sign: Sign, mut data: BigUint) -> BigInt {
13801380
if sign == NoSign {
@@ -1444,7 +1444,7 @@ impl BigInt {
14441444
/// Creates and initializes a `BigInt` from an array of bytes in
14451445
/// two's complement binary representation.
14461446
///
1447-
/// The digits are in big-endian base 2^8.
1447+
/// The digits are in big-endian base 2<sup>8</sup>.
14481448
#[inline]
14491449
pub fn from_signed_bytes_be(digits: &[u8]) -> BigInt {
14501450
let sign = match digits.first() {
@@ -1465,7 +1465,7 @@ impl BigInt {
14651465

14661466
/// Creates and initializes a `BigInt` from an array of bytes in two's complement.
14671467
///
1468-
/// The digits are in little-endian base 2^8.
1468+
/// The digits are in little-endian base 2<sup>8</sup>.
14691469
#[inline]
14701470
pub fn from_signed_bytes_le(digits: &[u8]) -> BigInt {
14711471
let sign = match digits.last() {

bigint/src/biguint.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1325,23 +1325,23 @@ pub fn to_str_radix_reversed(u: &BigUint, radix: u32) -> Vec<u8> {
13251325
impl BigUint {
13261326
/// Creates and initializes a `BigUint`.
13271327
///
1328-
/// The digits are in little-endian base 2^32.
1328+
/// The digits are in little-endian base 2<sup>32</sup>.
13291329
#[inline]
13301330
pub fn new(digits: Vec<BigDigit>) -> BigUint {
13311331
BigUint { data: digits }.normalized()
13321332
}
13331333

13341334
/// Creates and initializes a `BigUint`.
13351335
///
1336-
/// The digits are in little-endian base 2^32.
1336+
/// The digits are in little-endian base 2<sup>32</sup>.
13371337
#[inline]
13381338
pub fn from_slice(slice: &[BigDigit]) -> BigUint {
13391339
BigUint::new(slice.to_vec())
13401340
}
13411341

13421342
/// Assign a value to a `BigUint`.
13431343
///
1344-
/// The digits are in little-endian base 2^32.
1344+
/// The digits are in little-endian base 2<sup>32</sup>.
13451345
#[inline]
13461346
pub fn assign_from_slice(&mut self, slice: &[BigDigit]) {
13471347
self.data.resize(slice.len(), 0);

complex/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ impl<T: Clone + Float> Complex<T> {
132132
pub fn arg(&self) -> T {
133133
self.im.atan2(self.re)
134134
}
135-
/// Convert to polar form (r, theta), such that `self = r * exp(i
136-
/// * theta)`
135+
/// Convert to polar form (r, theta), such that
136+
/// `self = r * exp(i * theta)`
137137
#[inline]
138138
pub fn to_polar(&self) -> (T, T) {
139139
(self.norm(), self.arg())

0 commit comments

Comments
 (0)