Skip to content

Commit 2872bbb

Browse files
authored
Merge pull request piotrmurach#361 from olleolleolle/fix-yard-annotations
YARD annotations: avoid typos
2 parents 1cc41fc + aa99a50 commit 2872bbb

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

lib/github_api/api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def filter_callbacks(kind, action_name)
229229

230230
# Run all callbacks associated with this action
231231
#
232-
# @apram [Symbol] action_name
232+
# @param [Symbol] action_name
233233
#
234234
# @api private
235235
def run_callbacks(action_name, &block)

lib/github_api/client/projects/cards.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ def get(*args)
6666
# github.projects.cards.create :column_id, note: 'Card Note'
6767
#
6868
# @example
69-
# github = Github.new
70-
# github.projects.cards.create :column_id, content_id: <content-id>, content_type: 'content-type'
69+
# github = Github.new
70+
# github.projects.cards.create :column_id, content_id: <content-id>, content_type: 'content-type'
7171
#
7272
# @see https://developer.github.com/v3/projects/cards/#create-a-project-card
7373
#

lib/github_api/client/repos/forks.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ class Client::Repos::Forks < API
1313
#
1414
# @example
1515
# github = Github.new
16-
# github.repos.forks.list 'user-name', 'repo-name'
17-
# github.repos.forks.list 'user-name', 'repo-name' { |fork| ... }
16+
# github.repos.forks.list('user-name', 'repo-name')
17+
# github.repos.forks.list('user-name', 'repo-name') { |fork|
18+
# #...
19+
# }
1820
#
1921
# @api public
2022
def list(*args)

lib/github_api/request.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ def initialize(action, path, api)
4343

4444
# Performs a request
4545
#
46-
# @param [Symbol] method - The Symbol the HTTP verb
47-
# @param [String] path - String relative URL to access
46+
# @param current_options [Hash]
4847
# @param [ParamsHash] params - ParamsHash to configure the request API
4948
#
5049
# @return [Github::ResponseWrapper]

0 commit comments

Comments
 (0)