Skip to content

Commit 5eaf98b

Browse files
committed
Update src comment
1 parent 9b9ec6d commit 5eaf98b

File tree

1 file changed

+2
-7
lines changed
  • lib/node_modules/@stdlib/process/cwd/lib

1 file changed

+2
-7
lines changed

lib/node_modules/@stdlib/process/cwd/lib/browser.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,15 @@
33
// MAIN //
44

55
/**
6-
* Returns the current working directory.
7-
*
8-
* ## Notes
9-
*
10-
* - This function assumes a virtual filesystem in a browser environment.
6+
* Polyfill for returning the current working directory in environments which do not have support for returning the current working directory.
117
*
128
* @returns {string} current working directory
139
*
1410
* @example
1511
* var dir = cwd();
16-
* // returns '/path/to/current/working/directory'
12+
* // returns '/'
1713
*/
1814
function cwd() {
19-
// TODO: implement
2015
return '/';
2116
}
2217

0 commit comments

Comments
 (0)