Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 6cfa401a1a8974e80f094bc829e395d8c5264573 1 parent ecdf2b1
@fishcakez authored
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) ->
Please sign in to comment.
Something went wrong with that request. Please try again.