We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f43e4f commit bc783f8Copy full SHA for bc783f8
dsc_lib/src/functions/range.rs
@@ -16,7 +16,7 @@ impl Function for Range {
16
FunctionMetadata {
17
name: "range".to_string(),
18
description: t!("functions.range.description").to_string(),
19
- category: FunctionCategory::Array,
+ category: vec![FunctionCategory::Array],
20
min_args: 2,
21
max_args: 2,
22
accepted_arg_ordered_types: vec![
@@ -48,7 +48,7 @@ impl Function for Range {
48
49
// should not exceed
50
if let Some(sum) = start_index.checked_add(count) {
51
- if sum > 2147483647 {
+ if sum > 2_147_483_647 {
52
return Err(DscError::FunctionArg("range".to_string(), t!("functions.range.sumTooLarge").to_string()));
53
}
54
} else {
0 commit comments