File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -884,7 +884,7 @@ defmodule Path do
884884    * A `..` component would make it so that the path would traverse up above 
885885      the root of `relative_to`. 
886886
887-     * A symbolic link in the path points to something above the root of `cwd `. 
887+     * A symbolic link in the path points to something above the root of `relative_to `. 
888888
889889  ## Examples 
890890
@@ -906,10 +906,10 @@ defmodule Path do
906906  """ 
907907  @ doc  since:  "1.14.0" 
908908  @ spec  safe_relative ( t ,  t )  ::  { :ok ,  binary }  |  :error 
909-   def  safe_relative ( path ,  cwd  \\  File . cwd! ( ) )  do 
909+   def  safe_relative ( path ,  relative_to  \\  File . cwd! ( ) )  do 
910910    path  =  IO . chardata_to_string ( path ) 
911911
912-     case  :filelib . safe_relative_path ( path ,  cwd )  do 
912+     case  :filelib . safe_relative_path ( path ,  relative_to )  do 
913913      :unsafe  ->  :error 
914914      relative_path  ->  { :ok ,  IO . chardata_to_string ( relative_path ) } 
915915    end 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments