mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
fix typo
This commit is contained in:
parent
fbcea3f3f5
commit
f9f7a1a3e8
1 changed files with 3 additions and 3 deletions
|
@ -85,10 +85,10 @@ pub fn get_relative_path(sub_path: &Path) -> Option<PathBuf> {
|
|||
// This requires dropping up to 3 directories.
|
||||
for _ in 0..=3 {
|
||||
if let Some(curr_parent) = curr_parent_opt {
|
||||
let potenial_path = curr_parent.join(sub_path);
|
||||
let potential_path = curr_parent.join(sub_path);
|
||||
|
||||
if std::path::Path::exists(&potenial_path) {
|
||||
return Some(potenial_path);
|
||||
if std::path::Path::exists(&potential_path) {
|
||||
return Some(potential_path);
|
||||
} else {
|
||||
curr_parent_opt = curr_parent.parent();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue