Skip to content

Commit 976ae1f

Browse files
authored
fixed typos in README.md (#2521)
1 parent 3559681 commit 976ae1f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
* [#2506](https://github.com/ruby-grape/grape/pull/2506): Fix fetch_formatter api_format - [@ericproulx](https://github.com/ericproulx).
2020
* [#2507](https://github.com/ruby-grape/grape/pull/2507): Fix type: Set with values - [@nikolai-b](https://github.com/nikolai-b).
2121
* [#2510](https://github.com/ruby-grape/grape/pull/2510): Fix ContractScope's validator inheritance - [@ericproulx](https://github.com/ericproulx).
22+
* [#2521](https://github.com/ruby-grape/grape/pull/2521): Fixed typo in README - [@datpmt](https://github.com/datpmt).
2223
* Your contribution here.
2324

2425
### 2.2.0 (2024-09-14)

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2046,7 +2046,7 @@ end
20462046
```ruby
20472047
params do
20482048
requires :code, type: String, length: { is: 2, message: 'code is expected to be exactly 2 characters long' }
2049-
requires :str, type: String, length: { min: 5, message: 'str is expected to be atleast 5 characters long' }
2049+
requires :str, type: String, length: { min: 5, message: 'str is expected to be at least 5 characters long' }
20502050
requires :list, type: [Integer], length: { min: 2, max: 3, message: 'list is expected to have between 2 and 3 elements' }
20512051
end
20522052
```
@@ -3536,8 +3536,8 @@ Please use `Route#xyz` instead.
35363536

35373537
Note that difference of `Route#options` and `Route#settings`.
35383538

3539-
The `options` can be referred from your route, it should be set by specifing key and value on verb methods such as `get`, `post` and `put`.
3540-
The `settings` can also be referred from your route, but it should be set by specifing key and value on `route_setting`.
3539+
The `options` can be referred from your route, it should be set by specifying key and value on verb methods such as `get`, `post` and `put`.
3540+
The `settings` can also be referred from your route, but it should be set by specifying key and value on `route_setting`.
35413541

35423542
## Current Route and Endpoint
35433543

0 commit comments

Comments
 (0)