diff options
author | schneems <richard.schneeman+foo@gmail.com> | 2019-08-29 13:01:43 -0500 |
---|---|---|
committer | Aaron Patterson <tenderlove@github.com> | 2019-08-29 11:57:23 -0700 |
commit | 94b79bffb108ccacb6d165f31e177fa24d392774 (patch) | |
tree | 554f2c9d091128631316df6e67b4d8a75201ed5c /math.c | |
parent | a8b310e14c2816f686b2e0b1cd1dca72f02fdf0d (diff) | |
download | ruby-94b79bffb108ccacb6d165f31e177fa24d392774.tar.gz |
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.
Diffstat (limited to 'math.c')
-rw-r--r-- | math.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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))); |