Replace 'above' with 'below' in route parse error message.

This commit is contained in:
Songbird0 2018-03-15 19:09:07 +01:00 committed by Sergio Benitez
parent b0fc8b31f6
commit 4862dd2161
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ impl RouteParams {
) -> RouteParams {
let function = Function::from(annotated).unwrap_or_else(|item_sp| {
ecx.span_err(sp, "this attribute can only be used on functions...");
ecx.span_fatal(item_sp, "...but was applied to the item above.");
ecx.span_fatal(item_sp, "...but was applied to the item below.");
});
let meta_items = meta_item.meta_item_list().unwrap_or_else(|| {