summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-11-10 10:43:04 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-11-10 10:43:04 +0200
commit79afb001ad1b6233514fb2eb683fd7202e6d324e (patch)
treeb0cd15e9f575dcdd15d46b49ba06d2edfd2a3cec
parentc9e31875dc4e27e679aed3f301a8161b45b4ce99 (diff)
downloadgitlab-ce-79afb001ad1b6233514fb2eb683fd7202e6d324e.tar.gz
Fix type in API doc
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r--doc/api/repositories.md2
-rw-r--r--lib/api/files.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/repositories.md b/doc/api/repositories.md
index b9fb8cc26a8..17f388194d2 100644
--- a/doc/api/repositories.md
+++ b/doc/api/repositories.md
@@ -380,7 +380,7 @@ POST /projects/:id/repository/files
Parameters:
+ `file_name` (required) - The name of new file. Ex. class.rb
-+ `file_path` (optiona) - The path to new file. Ex. lib/
++ `file_path` (optional) - The path to new file. Ex. lib/
+ `branch_name` (required) - The name of branch
+ `content` (required) - File content
+ `commit_message` (required) - Commit message
diff --git a/lib/api/files.rb b/lib/api/files.rb
index 5918b6e5ca0..1692d3d3a20 100644
--- a/lib/api/files.rb
+++ b/lib/api/files.rb
@@ -9,7 +9,7 @@ module API
#
# Parameters:
# file_name (required) - The name of new file. Ex. class.rb
- # file_path (optiona) - The path to new file. Ex. lib/
+ # file_path (optional) - The path to new file. Ex. lib/
# branch_name (required) - The name of branch
# content (required) - File content
# commit_message (required) - Commit message