minor fixes in documentation

This commit is contained in:
Mateusz Piątkowski 2023-01-09 10:29:32 +01:00
commit f33627d05a

View File

@ -1266,6 +1266,11 @@ static Result<Value> builtin_rotate(Interpreter &i, std::vector<Value> args)
if (args.size()) {
if (auto const offset_source = get_if<Number>(args.front())) {
if (args.size() == 1) {
return Array{};
}
auto offset = offset_source->as_int();
auto array = Try(flatten(i, std::span(args).subspan(1)));
if (offset > 0) {