Browse Source

Fix #1394 Misworded doc for command params args

This fixes the docs for the command service, where it specifies that arguments that use the params keyword are comma separated, when they are actually space separated.
pull/1400/head
Chris Johnston GitHub 5 years ago
parent
commit
23148ea1ac
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      docs/guides/commands/intro.md

+ 2
- 2
docs/guides/commands/intro.md View File

@@ -111,7 +111,7 @@ optional, give it a default value (i.e., `int num = 0`).


#### Parameters with Spaces #### Parameters with Spaces


To accept a comma-separated list, set the parameter to `params Type[]`.
To accept a space-separated list, set the parameter to `params Type[]`.


Should a parameter include spaces, the parameter **must** be Should a parameter include spaces, the parameter **must** be
wrapped in quotes. For example, for a command with a parameter wrapped in quotes. For example, for a command with a parameter
@@ -218,4 +218,4 @@ Submodules are "modules" that reside within another one. Typically,
submodules are used to create nested groups (although not required to submodules are used to create nested groups (although not required to
create nested groups). create nested groups).


[!code-csharp[Groups and Submodules](samples/intro/groups.cs)]
[!code-csharp[Groups and Submodules](samples/intro/groups.cs)]

Loading…
Cancel
Save