docs: change comment style

This commit is contained in:
kenjis 2022-03-04 11:37:07 +09:00
parent 25b48a8221
commit f9ef14a206
No known key found for this signature in database
GPG Key ID: BD254878922AF198
2 changed files with 16 additions and 12 deletions

View File

@ -2,9 +2,11 @@
$fruit = CLI::promptByKey('These are your choices:', ['The red apple', 'The plump orange', 'The ripe banana']);
//These are your choices:
// [0] The red apple
// [1] The plump orange
// [2] The ripe banana
//
//[0, 1, 2]:
/*
These are your choices:
[0] The red apple
[1] The plump orange
[2] The ripe banana
[0, 1, 2]:
*/

View File

@ -6,9 +6,11 @@ $fruit = CLI::promptByKey(['These are your choices:', 'Which would you like?'],
'banana' => 'The ripe banana'
]);
//These are your choices:
// [apple] The red apple
// [orange] The plump orange
// [banana] The ripe banana
//
//Which would you like? [apple, orange, banana]:
/*
These are your choices:
[apple] The red apple
[orange] The plump orange
[banana] The ripe banana
Which would you like? [apple, orange, banana]:
*/