summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/foundations/array.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2025-01-21 12:10:06 +0100
committerGitHub <noreply@github.com>2025-01-21 11:10:06 +0000
commitb90ad470d60f4a90e3ba2e78aa4746fbe08783ab (patch)
tree3f69c0077258ce8c5c69ddfa53ab8362ca0a4e99 /crates/typst-library/src/foundations/array.rs
parentc22c47b9c97062309ed841679bb49fc15bb6a398 (diff)
Remove redundant doc comments on standard arguments (#5725)
Diffstat (limited to 'crates/typst-library/src/foundations/array.rs')
-rw-r--r--crates/typst-library/src/foundations/array.rs25
1 files changed, 0 insertions, 25 deletions
diff --git a/crates/typst-library/src/foundations/array.rs b/crates/typst-library/src/foundations/array.rs
index e79a4e93..aad7266b 100644
--- a/crates/typst-library/src/foundations/array.rs
+++ b/crates/typst-library/src/foundations/array.rs
@@ -301,9 +301,7 @@ impl Array {
#[func]
pub fn find(
&self,
- /// The engine.
engine: &mut Engine,
- /// The callsite context.
context: Tracked<Context>,
/// The function to apply to each item. Must return a boolean.
searcher: Func,
@@ -325,9 +323,7 @@ impl Array {
#[func]
pub fn position(
&self,
- /// The engine.
engine: &mut Engine,
- /// The callsite context.
context: Tracked<Context>,
/// The function to apply to each item. Must return a boolean.
searcher: Func,
@@ -363,8 +359,6 @@ impl Array {
/// ```
#[func]
pub fn range(
- /// The real arguments (the other arguments are just for the docs, this
- /// function is a bit involved, so we parse the arguments manually).
args: &mut Args,
/// The start of the range (inclusive).
#[external]
@@ -402,9 +396,7 @@ impl Array {
#[func]
pub fn filter(
&self,
- /// The engine.
engine: &mut Engine,
- /// The callsite context.
context: Tracked<Context>,
/// The function to apply to each item. Must return a boolean.
test: Func,
@@ -427,9 +419,7 @@ impl Array {
#[func]
pub fn map(
self,
- /// The engine.
engine: &mut Engine,
- /// The callsite context.
context: Tracked<Context>,
/// The function to apply to each item.
mapper: Func,
@@ -481,8 +471,6 @@ impl Array {
#[func]
pub fn zip(
self,
- /// The real arguments (the `others` arguments are just for the docs, this
- /// function is a bit involved, so we parse the positional arguments manually).
args: &mut Args,
/// Whether all arrays have to have the same length.
/// For example, `{(1, 2).zip((1, 2, 3), exact: true)}` produces an
@@ -569,9 +557,7 @@ impl Array {
#[func]
pub fn fold(
self,
- /// The engine.
engine: &mut Engine,
- /// The callsite context.
context: Tracked<Context>,
/// The initial value to start with.
init: Value,
@@ -631,9 +617,7 @@ impl Array {
#[func]
pub fn any(
self,
- /// The engine.
engine: &mut Engine,
- /// The callsite context.
context: Tracked<Context>,
/// The function to apply to each item. Must return a boolean.
test: Func,
@@ -651,9 +635,7 @@ impl Array {
#[func]
pub fn all(
self,
- /// The engine.
engine: &mut Engine,
- /// The callsite context.
context: Tracked<Context>,
/// The function to apply to each item. Must return a boolean.
test: Func,
@@ -831,11 +813,8 @@ impl Array {
#[func]
pub fn sorted(
self,
- /// The engine.
engine: &mut Engine,
- /// The callsite context.
context: Tracked<Context>,
- /// The callsite span.
span: Span,
/// If given, applies this function to the elements in the array to
/// determine the keys to sort by.
@@ -881,9 +860,7 @@ impl Array {
#[func(title = "Deduplicate")]
pub fn dedup(
self,
- /// The engine.
engine: &mut Engine,
- /// The callsite context.
context: Tracked<Context>,
/// If given, applies this function to the elements in the array to
/// determine the keys to deduplicate by.
@@ -967,9 +944,7 @@ impl Array {
#[func]
pub fn reduce(
self,
- /// The engine.
engine: &mut Engine,
- /// The callsite context.
context: Tracked<Context>,
/// The reducing function. Must have two parameters: One for the
/// accumulated value and one for an item.