minor fixes in documentation

This commit is contained in:
Mateusz Piątkowski 2023-01-09 10:29:01 +01:00
parent aec2f3f496
commit dcf160f017
1 changed files with 14 additions and 3 deletions

View File

@ -212,7 +212,7 @@ invalid_argument_type:
}, },
}; };
} }
//: Funkcja `ceil` zwraca liczbę zaokrągloną do pierwszej mniejszej liczby całkowitej. //: Funkcja `ceil` zwraca liczbę zaokrągloną do pierwszej większej liczby całkowitej.
//: //:
//: # Przykład //: # Przykład
//: ``` //: ```
@ -221,7 +221,7 @@ invalid_argument_type:
//: ``` //: ```
Forward_Implementation(builtin_ceil, apply_numeric_transform<&Number::ceil>) Forward_Implementation(builtin_ceil, apply_numeric_transform<&Number::ceil>)
//: Funkcja `floor` zwraca liczbę zaokrągloną do pierwszej większej liczby całkowitej. //: Funkcja `floor` zwraca liczbę zaokrągloną do pierwszej mniejszej liczby całkowitej.
//: //:
//: # Przykład //: # Przykład
//: ``` //: ```
@ -304,6 +304,8 @@ Forward_Implementation(builtin_up, range<Range_Direction::Up>)
//: ``` //: ```
//: > down 10 //: > down 10
//: (9, 8, 7, 6, 5, 4, 3, 2, 1, 0) //: (9, 8, 7, 6, 5, 4, 3, 2, 1, 0)
//: > down 5 10
//: (9, 8, 7, 6, 5)
//: ``` //: ```
Forward_Implementation(builtin_down, range<Range_Direction::Down>) Forward_Implementation(builtin_down, range<Range_Direction::Down>)
@ -943,6 +945,11 @@ static Result<Value> builtin_typeof(Interpreter&, std::vector<Value> args)
return Symbol(type_name(args.front())); return Symbol(type_name(args.front()));
} }
//: Funkcja `len` ustawia domyślną długość nuty.
//: # Przykład ustawienie domyślnej długości nuty na ósemkę
//: ```
//: len (1/8)
//: ```
/// Return length of container or set/get default length to play /// Return length of container or set/get default length to play
static Result<Value> builtin_len(Interpreter &i, std::vector<Value> args) static Result<Value> builtin_len(Interpreter &i, std::vector<Value> args)
{ {
@ -1054,7 +1061,10 @@ static Result<Value> builtin_set_oct(Interpreter &interpreter, std::vector<Value
//: //:
//: # Przykład //: # Przykład
//: ``` //: ```
//: TODO //: > duration a
//: 1/4
//: > duration chord a b c
//: 3/4
//: ``` //: ```
static Result<Value> builtin_duration(Interpreter &interpreter, std::vector<Value> args) static Result<Value> builtin_duration(Interpreter &interpreter, std::vector<Value> args)
{ {
@ -1073,6 +1083,7 @@ static Result<Value> builtin_duration(Interpreter &interpreter, std::vector<Valu
//: //:
//: # Przykład //: # Przykład
//: ``` //: ```
//: > B := chord a b c
//: > flat B a b c 1 //: > flat B a b c 1
//: (chord (a, b, c), a, b, c, 1) //: (chord (a, b, c), a, b, c, 1)
//: ``` //: ```