[DOC] Update warning categories

- Fix indentations of labeled lists.
- Mention performance category.
This commit is contained in:
Nobuyoshi Nakada 2023-08-01 14:54:16 +09:00
parent 533dcb8e52
commit 0622c78869
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

20
error.c
View File

@ -201,14 +201,20 @@ rb_warning_category_enabled_p(rb_warning_category_t category)
* Returns the flag to show the warning messages for +category+. * Returns the flag to show the warning messages for +category+.
* Supported categories are: * Supported categories are:
* *
* +:deprecated+ :: deprecation warnings * +:deprecated+ ::
* * assignment of non-nil value to <code>$,</code> and <code>$;</code> * deprecation warnings
* * keyword arguments * * assignment of non-nil value to <code>$,</code> and <code>$;</code>
* * proc/lambda without block * * keyword arguments
* etc. * * proc/lambda without block
* etc.
* *
* +:experimental+ :: experimental features * +:experimental+ ::
* * Pattern matching * experimental features
* * Pattern matching
*
* +:performance+ ::
* performance hints
* * Shape variation limit
*/ */
static VALUE static VALUE