Skip to content

Commit c620603

Browse files
Hoboneerwillmcgugan
authored andcommitted
Fix parameter docs for FS.settext (#190)
Match with the docs for `FS.setbytes` because they're different versions of essentially the same thing: setX to a file, so `path` is exactly the same and `contents` is adapted for this function.
1 parent e63f5af commit c620603

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fs/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1368,7 +1368,8 @@ def settext(self,
13681368
"""Create or replace a file with text.
13691369
13701370
Arguments:
1371-
contents (str): A path on the filesystem.
1371+
path (str): Destination path on the filesystem.
1372+
contents (str): Text to be written.
13721373
encoding (str, optional): Encoding of destination file
13731374
(defaults to ``'ut-8'``).
13741375
errors (str, optional): How encoding errors should be treated

0 commit comments

Comments
 (0)