1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add word "Euler's number" to Math::E docs

When searching for this constant, I landed on the correct page https://ruby-doc.org/core-2.6.4/Math.html however I was using CMD+f to search for "Euler" and did not find it. If we add the full name for this constant then it will be easier to search for and find.
This commit is contained in:
schneems 2019-08-29 13:01:43 -05:00 committed by Aaron Patterson
parent a8b310e14c
commit 94b79bffb1
Notes: git 2019-08-31 04:40:14 +09:00

2
math.c
View file

@ -982,7 +982,7 @@ InitVM_Math(void)
rb_define_const(rb_mMath, "PI", DBL2NUM(M_PI));
#ifdef M_E
/* Definition of the mathematical constant E (e) as a Float number. */
/* Definition of the mathematical constant for Euler's number E (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)));