Update Repository.rst (#1118)

the example confused me until I found https://github.com/PyGithub/PyGithub/issues/545
This commit is contained in:
Moritz Schubotz
2019-06-27 22:36:40 +10:00
committed by Steve Kowalik
parent befce37e20
commit fd090eccbb
+1 -1
View File
@@ -115,7 +115,7 @@ Create a new file in the repository
.. code-block:: python
>>> repo = g.get_repo("PyGithub/PyGithub")
>>> repo.create_file("test.txt", "test", "test", branch="test")
>>> repo.create_file("/test.txt", "test", "test", branch="test")
{'content': ContentFile(path="test.txt"), 'commit': Commit(sha="5b584cf6d32d960bb7bee8ce94f161d939aec377")}
Update a file in the repository