Skip to content

Commit f49134a

Browse files
committed
Update example return values and fix formatting
1 parent 84740aa commit f49134a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/node_modules/@stdlib/utils/convert-path/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ var p = convertPath( 'C:\\foo\\bar', 'posix' );
5151

5252
The following output path conventions are supported:
5353

54-
- **win32**: Windows path convention; e.g., \`C:\\foo\\bar'.
54+
- **win32**: Windows path convention; e.g., `C:\\foo\\bar`.
5555
- **mixed**: mixed path convention (Windows volume convention and POSIX path separator); e.g., `C:/foo/bar`.
5656
- **posix**: POSIX path convention; e.g., `/c/foo/bar`.
5757

@@ -89,7 +89,7 @@ var p2;
8989

9090
p1 = '/c/foo/bar/beep.c';
9191
p2 = convertPath( p1, 'win32' );
92-
// returns 'c:\\foo\\bar\\beep.c'
92+
// returns 'c:\foo\bar\beep.c'
9393

9494
p1 = '/c/foo/bar/beep.c';
9595
p2 = convertPath( p1, 'mixed' );
@@ -101,7 +101,7 @@ p2 = convertPath( p1, 'posix' );
101101

102102
p1 = 'C:\\\\foo\\bar\\beep.c';
103103
p2 = convertPath( p1, 'win32' );
104-
// returns 'C:\\\\foo\\bar\\beep.c'
104+
// returns 'C:\\foo\bar\beep.c'
105105

106106
p1 = 'C:\\\\foo\\bar\\beep.c';
107107
p2 = convertPath( p1, 'mixed' );

lib/node_modules/@stdlib/utils/convert-path/lib/convert_path.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ var RE_POSIX_DEVICE_ROOT =/^\/([A-Za-z])\//;
4747
*
4848
* @example
4949
* var p = convertPath( '/c/foo/bar/beep.c', 'win32' );
50-
* // returns 'c:\\foo\\bar\\beep.c'
50+
* // returns 'c:\foo\bar\beep.c'
5151
*
5252
* @example
5353
* var p = convertPath( '/c/foo/bar/beep.c', 'mixed' );

lib/node_modules/@stdlib/utils/convert-path/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* var convertPath = require( '@stdlib/utils/convert-path' );
2828
*
2929
* var p = convertPath( '/c/foo/bar/beep.c', 'win32' );
30-
* // returns 'c:\\foo\\bar\\beep.c'
30+
* // returns 'c:\foo\bar\beep.c'
3131
*
3232
* p = convertPath( '/c/foo/bar/beep.c', 'mixed' );
3333
* // returns 'c:/foo/bar/beep.c'

0 commit comments

Comments
 (0)