Skip to content

Commit

Permalink
Fix building the manual using 0.16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickpeterse committed Aug 14, 2024
1 parent cdd753c commit 5ffa86d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/docs/url.inko
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import wobsite.url (relative_to_absolute)

fn link_from(page: ref Page, to: String) -> String {
if page.url == '/' {
to.strip_prefix('/')
to.strip_prefix('/').or_panic('the target URL must start with a /')
} else {
let mut steps = page.url.split('/').select(fn (v) { v != '' }).count
let to_abs = to.starts_with?('/')
Expand Down

0 comments on commit 5ffa86d

Please sign in to comment.