mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
[DOC] Fix wording in Math::E documentation
This commit is contained in:
parent
30c5e8c4b9
commit
0231661939
2
math.c
2
math.c
@ -984,7 +984,7 @@ InitVM_Math(void)
|
||||
rb_define_const(rb_mMath, "PI", DBL2NUM(M_PI));
|
||||
|
||||
#ifdef M_E
|
||||
/* Definition of the mathematical constant for Euler's number E (e) as a Float number. */
|
||||
/* Definition of the mathematical constant E for Euler's number (e) as a Float number. */
|
||||
rb_define_const(rb_mMath, "E", DBL2NUM(M_E));
|
||||
#else
|
||||
rb_define_const(rb_mMath, "E", DBL2NUM(exp(1.0)));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user