Skip to content

Commit

Permalink
Make fn const
Browse files Browse the repository at this point in the history
  • Loading branch information
aurexav committed Jul 17, 2024
1 parent 7483db0 commit 1403c45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ pub enum Language {
}
impl Language {
/// Get all languages.
pub fn all() -> [Self; 250] {
pub const fn all() -> [Self; 250] {
[
AfZa,
SqAl,
Expand Down

0 comments on commit 1403c45

Please sign in to comment.