Fixing comment.

default_instance_sort_type
Dessalines 2024-02-15 13:31:41 -05:00
parent 533a67dd3a
commit 59111c0379
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ fn listing_type_with_default(
} }
} }
/// Returns default listing type, depending if the query is for frontpage or community. /// Returns a default instance-level sort type, if none is given by the user.
fn sort_type_with_default(type_: Option<SortType>, local_site: &LocalSite) -> SortType { fn sort_type_with_default(type_: Option<SortType>, local_site: &LocalSite) -> SortType {
type_.unwrap_or(local_site.default_sort_type) type_.unwrap_or(local_site.default_sort_type)
} }