Skip to content

Commit 37011bf

Browse files
committedFeb 27, 2024
Fix backslash formatting in git.util docstrings
As in 5219489.
1 parent ae37a4a commit 37011bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎git/util.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def stream_copy(source: BinaryIO, destination: BinaryIO, chunk_size: int = 512 *
260260

261261
def join_path(a: PathLike, *p: PathLike) -> PathLike:
262262
R"""Join path tokens together similar to osp.join, but always use
263-
'/' instead of possibly '\' on Windows."""
263+
``/`` instead of possibly ``\`` on Windows."""
264264
path = str(a)
265265
for b in p:
266266
b = str(b)
@@ -300,7 +300,7 @@ def join_path_native(a: PathLike, *p: PathLike) -> PathLike:
300300
R"""Like join_path, but makes sure an OS native path is returned.
301301
302302
This is only needed to play it safe on Windows and to ensure nice paths that only
303-
use '\'.
303+
use ``\``.
304304
"""
305305
return to_native_path(join_path(a, *p))
306306

0 commit comments

Comments
 (0)
Please sign in to comment.