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 коммит произвёл Aaron Patterson
Родитель a8b310e14c
Коммит 94b79bffb1
1 изменённых файлов: 1 добавлений и 1 удалений

2
math.c
Просмотреть файл

@ -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)));