Skip to content

Commit a621d97

Browse files
authored
Some minor fixes
1 parent 6a6bb2b commit a621d97

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

‎reference/tools.rst‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -862,14 +862,13 @@ Parameters:
862862
- **filename** (Required): Name of the executable file. It doesn't require the extension of the executable.
863863

864864
tools.unix2dos()
865-
-------------
865+
----------------
866866

867867
.. code-block:: python
868868
869869
def unix2dos(filepath)
870870
871871
Converts line breaks in a text file from Unix format (LF) to DOS format (CRLF).
872-
Returns True for success, False otherwise.
873872

874873
.. code-block:: python
875874
@@ -881,20 +880,19 @@ Parameters:
881880
- **filepath** (Required): The file to convert.
882881

883882
tools.dos2unix()
884-
-------------
883+
----------------
885884

886885
.. code-block:: python
887886
888887
def dos2unix(filepath)
889888
890889
Converts line breaks in a text file from DOS format (CRLF) to Unix format (LF).
891-
Returns True for success, False otherwise.
892890

893891
.. code-block:: python
894892
895893
from conans import tools
896894
897-
tools.dos2unix("dosfile")
895+
tools.dos2unix("dosfile.txt")
898896
899897
Parameters:
900898
- **filepath** (Required): The file to convert.

0 commit comments

Comments
 (0)