Commit 11e40c0e authored by Rémy Coutable's avatar Rémy Coutable

Improve copy

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent b4810fd2
...@@ -20,7 +20,7 @@ for a good example): ...@@ -20,7 +20,7 @@ for a good example):
- `desc` for the method summary. You should pass it a block for additional - `desc` for the method summary. You should pass it a block for additional
details such as: details such as:
- The GitLab version when the endpoint was added - The GitLab version when the endpoint was added
- If the endpoint is deprecated, and if yes when will it be removed - If the endpoint is deprecated, and if so, when will it be removed
- `params` for the method params. This acts as description, - `params` for the method params. This acts as description,
[validation, and coercion of the parameters] [validation, and coercion of the parameters]
...@@ -83,7 +83,7 @@ User.create(declared(params, include_parent_namespaces: false).to_h) ...@@ -83,7 +83,7 @@ User.create(declared(params, include_parent_namespaces: false).to_h)
`declared(params)` return a `Hashie::Mash` object, on which you will have to `declared(params)` return a `Hashie::Mash` object, on which you will have to
call `.to_h`. call `.to_h`.
But we can use directly `params[key]` when we access single elements. But we can use `params[key]` directly when we access single elements.
For instance: For instance:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment