Skip to content

Commit f0c02da

Browse files
authored
Merge pull request #2383 from ruby/remove-gcc-warning
Suppress to GCC warning with multi-line comment
2 parents 8e61278 + 539597a commit f0c02da

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

ext/rbs_extension/main.c

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,15 @@ Init_rbs_extension(void)
1818
rbs__init_location();
1919
rbs__init_parser();
2020

21-
// Calculated based on the number of unique strings used with the `INTERN` macro in `parser.c`.
22-
//
23-
// ```bash
24-
// grep -o 'INTERN("\([^"]*\)")' ext/rbs_extension/parser.c \
25-
// | sed 's/INTERN("\(.*\)")/\1/' \
26-
// | sort -u \
27-
// | wc -l
28-
// ```
21+
/* Calculated based on the number of unique strings used with the `INTERN` macro in `parser.c`.
22+
*
23+
* ```bash
24+
* grep -o 'INTERN("\([^"]*\)")' ext/rbs_extension/parser.c \
25+
* | sed 's/INTERN("\(.*\)")/\1/' \
26+
* | sort -u \
27+
* | wc -l
28+
* ```
29+
*/
2930
const size_t num_uniquely_interned_strings = 26;
3031
rbs_constant_pool_init(RBS_GLOBAL_CONSTANT_POOL, num_uniquely_interned_strings);
3132

0 commit comments

Comments
 (0)