Skip to content

Commit fb62cf9

Browse files
committed
[DOC] Indent multiline call-seq comment
1 parent a015c8b commit fb62cf9

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

ext/bigdecimal/bigdecimal.c

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,7 +1485,8 @@ BigDecimal_add(VALUE self, VALUE r)
14851485
return VpCheckGetValue(c);
14861486
}
14871487

1488-
/* call-seq:
1488+
/*
1489+
* call-seq:
14891490
* self - value -> bigdecimal
14901491
*
14911492
* Returns the \BigDecimal difference of +self+ and +value+:
@@ -2053,8 +2054,8 @@ BigDecimal_DoDivmod(VALUE self, VALUE r, Real **div, Real **mod)
20532054
}
20542055

20552056
/* call-seq:
2056-
* a % b
2057-
* a.modulo(b)
2057+
* a % b
2058+
* a.modulo(b)
20582059
*
20592060
* Returns the modulus from dividing by b.
20602061
*
@@ -2127,7 +2128,7 @@ BigDecimal_divremain(VALUE self, VALUE r, Real **dv, Real **rv)
21272128
}
21282129

21292130
/* call-seq:
2130-
* remainder(value)
2131+
* remainder(value)
21312132
*
21322133
* Returns the remainder from dividing by the value.
21332134
*
@@ -2144,7 +2145,7 @@ BigDecimal_remainder(VALUE self, VALUE r) /* remainder */
21442145
}
21452146

21462147
/* call-seq:
2147-
* divmod(value)
2148+
* divmod(value)
21482149
*
21492150
* Divides by the specified value, and returns the quotient and modulus
21502151
* as BigDecimal numbers. The quotient is rounded towards negative infinity.
@@ -2316,7 +2317,7 @@ BigDecimal_add2(VALUE self, VALUE b, VALUE n)
23162317
}
23172318

23182319
/* call-seq:
2319-
* sub(value, digits) -> bigdecimal
2320+
* sub(value, digits) -> bigdecimal
23202321
*
23212322
* Subtract the specified value.
23222323
*
@@ -2415,7 +2416,7 @@ BigDecimal_abs(VALUE self)
24152416
}
24162417

24172418
/* call-seq:
2418-
* sqrt(n)
2419+
* sqrt(n)
24192420
*
24202421
* Returns the square root of the value.
24212422
*
@@ -2456,7 +2457,7 @@ BigDecimal_fix(VALUE self)
24562457
}
24572458

24582459
/* call-seq:
2459-
* round(n, mode)
2460+
* round(n, mode)
24602461
*
24612462
* Round to the nearest integer (by default), returning the result as a
24622463
* BigDecimal if n is specified and positive, or as an Integer if it isn't.
@@ -2534,7 +2535,7 @@ BigDecimal_round(int argc, VALUE *argv, VALUE self)
25342535
}
25352536

25362537
/* call-seq:
2537-
* truncate(n)
2538+
* truncate(n)
25382539
*
25392540
* Truncate to the nearest integer (by default), returning the result as a
25402541
* BigDecimal.
@@ -2596,7 +2597,7 @@ BigDecimal_frac(VALUE self)
25962597
}
25972598

25982599
/* call-seq:
2599-
* floor(n)
2600+
* floor(n)
26002601
*
26012602
* Return the largest integer less than or equal to the value, as a BigDecimal.
26022603
*
@@ -2643,7 +2644,7 @@ BigDecimal_floor(int argc, VALUE *argv, VALUE self)
26432644
}
26442645

26452646
/* call-seq:
2646-
* ceil(n)
2647+
* ceil(n)
26472648
*
26482649
* Return the smallest integer greater than or equal to the value, as a BigDecimal.
26492650
*
@@ -2686,7 +2687,7 @@ BigDecimal_ceil(int argc, VALUE *argv, VALUE self)
26862687
}
26872688

26882689
/* call-seq:
2689-
* to_s(s)
2690+
* to_s(s)
26902691
*
26912692
* Converts the value to a string.
26922693
*
@@ -2996,8 +2997,8 @@ bigdecimal_power_by_bigdecimal(Real const* x, Real const* exp, ssize_t const n)
29962997
}
29972998

29982999
/* call-seq:
2999-
* power(n)
3000-
* power(n, prec)
3000+
* power(n)
3001+
* power(n, prec)
30013002
*
30023003
* Returns the value raised to the power of n.
30033004
*
@@ -3788,8 +3789,9 @@ BigDecimal_s_interpret_loosely(VALUE klass, VALUE str)
37883789
return VpCheckGetValue(vp);
37893790
}
37903791

3791-
/* call-seq:
3792-
* BigDecimal.limit(digits)
3792+
/*
3793+
* call-seq:
3794+
* BigDecimal.limit(digits)
37933795
*
37943796
* Limit the number of significant digits in newly created BigDecimal
37953797
* numbers to the specified value. Rounding is performed as necessary,
@@ -3923,7 +3925,7 @@ BigDecimal_save_limit(VALUE self)
39233925
}
39243926

39253927
/* call-seq:
3926-
* BigMath.exp(decimal, numeric) -> BigDecimal
3928+
* BigMath.exp(decimal, numeric) -> BigDecimal
39273929
*
39283930
* Computes the value of e (the base of natural logarithms) raised to the
39293931
* power of +decimal+, to the specified number of digits of precision.
@@ -4054,7 +4056,7 @@ BigMath_s_exp(VALUE klass, VALUE x, VALUE vprec)
40544056
}
40554057

40564058
/* call-seq:
4057-
* BigMath.log(decimal, numeric) -> BigDecimal
4059+
* BigMath.log(decimal, numeric) -> BigDecimal
40584060
*
40594061
* Computes the natural logarithm of +decimal+ to the specified number of
40604062
* digits of precision, +numeric+.

0 commit comments

Comments
 (0)