Permalink
Browse files

Fix file:set_cwd/1 type spec

file:set_cwd/1 accepts paths of type file:name_all(), not just
file:name().
  • Loading branch information...
1 parent ecdf2b1 commit 6cfa401a1a8974e80f094bc829e395d8c5264573 @fishcakez committed Oct 22, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/kernel/src/file.erl
View
2 lib/kernel/src/file.erl
@@ -197,7 +197,7 @@ get_cwd(Drive) ->
check_and_call(get_cwd, [file_name(Drive)]).
-spec set_cwd(Dir) -> ok | {error, Reason} when
- Dir :: name(),
+ Dir :: name_all(),
Reason :: posix() | badarg | no_translation.
set_cwd(Dirname) ->

0 comments on commit 6cfa401

Please sign in to comment.