Browse Source

docs: Fix #1394 Misworded doc for command params args (#1400)

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.
tags/2.2.0
Chris Johnston Christopher F 5 years ago
parent
commit
1c6ee72a9a
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