[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+.
* Supported categories are:
*
* +:deprecated+ :: deprecation warnings
* * assignment of non-nil value to <code>$,</code> and <code>$;</code>
* * keyword arguments
* * proc/lambda without block
* etc.
* +:deprecated+ ::
* deprecation warnings
* * assignment of non-nil value to <code>$,</code> and <code>$;</code>
* * keyword arguments
* * proc/lambda without block
* etc.
*
* +:experimental+ :: experimental features
* * Pattern matching
* +:experimental+ ::
* experimental features
* * Pattern matching
*
* +:performance+ ::
* performance hints
* * Shape variation limit
*/
static VALUE