From c352f08ed675759039efc25d55d0241a6f785323 Mon Sep 17 00:00:00 2001 From: Eonyak Cho Date: Thu, 5 Mar 2026 23:30:40 +0000 Subject: [PATCH] Fix outdated float64 doc comments in helper package --- helper/abs.go | 2 +- helper/add.go | 2 +- helper/apply.go | 4 ++-- helper/chan_to_slice.go | 2 +- helper/divide.go | 2 +- helper/divide_by.go | 2 +- helper/filter.go | 2 +- helper/head.go | 2 +- helper/keep_negatives.go | 2 +- helper/keep_positives.go | 2 +- helper/map.go | 4 ++-- helper/multiply.go | 2 +- helper/multiply_by.go | 2 +- helper/pow.go | 2 +- helper/round_digits.go | 2 +- helper/sign.go | 2 +- helper/skip.go | 2 +- helper/slice_to_chan.go | 2 +- helper/sqrt.go | 2 +- helper/subtract.go | 2 +- 20 files changed, 22 insertions(+), 22 deletions(-) diff --git a/helper/abs.go b/helper/abs.go index c024e7f..d15dae7 100644 --- a/helper/abs.go +++ b/helper/abs.go @@ -6,7 +6,7 @@ package helper import "math" -// Abs calculates the absolute value of each value in a channel of float64. +// Abs calculates the absolute value of each value in a channel of type T. // // Example: // diff --git a/helper/add.go b/helper/add.go index 822e2f0..8629f4d 100644 --- a/helper/add.go +++ b/helper/add.go @@ -4,7 +4,7 @@ package helper -// Add adds each pair of values from the two input channels of float64 +// Add adds each pair of values from the two input channels of type T // and returns a new channel containing the sums. // // Example: diff --git a/helper/apply.go b/helper/apply.go index f2b0a88..0f01811 100644 --- a/helper/apply.go +++ b/helper/apply.go @@ -6,8 +6,8 @@ package helper // Apply applies the given transformation function to each element in the // input channel and returns a new channel containing the transformed -// values. The transformation function takes a float64 value as input -// and returns a float64 value as output. +// values. The transformation function takes a value of type T as input +// and returns a value of type T as output. // // Example: // diff --git a/helper/chan_to_slice.go b/helper/chan_to_slice.go index e781a45..0dc1c10 100644 --- a/helper/chan_to_slice.go +++ b/helper/chan_to_slice.go @@ -4,7 +4,7 @@ package helper -// ChanToSlice converts a channel of float64 to a slice of float64. +// ChanToSlice converts a channel of type T to a slice of type T. // // Example: // diff --git a/helper/divide.go b/helper/divide.go index 05338dd..776a467 100644 --- a/helper/divide.go +++ b/helper/divide.go @@ -4,7 +4,7 @@ package helper -// Divide takes two channels of float64 and divides the values +// Divide takes two channels of type T and divides the values // from the first channel with the values from the second one. // It returns a new channel containing the results of // the division. diff --git a/helper/divide_by.go b/helper/divide_by.go index a8c8794..3d8b595 100644 --- a/helper/divide_by.go +++ b/helper/divide_by.go @@ -5,7 +5,7 @@ package helper // DivideBy divides each element in the input channel -// of float64 values by the given divider and returns a +// of type T values by the given divider and returns a // new channel containing the divided values. // // Example: diff --git a/helper/filter.go b/helper/filter.go index cde8f63..26cfcd3 100644 --- a/helper/filter.go +++ b/helper/filter.go @@ -6,7 +6,7 @@ package helper // Filter filters the items from the input channel based on the // provided predicate function. The predicate function takes a -// float64 value as input and returns a boolean value indicating +// value of type T as input and returns a boolean value indicating // whether the value should be included in the output channel. // // Example: diff --git a/helper/head.go b/helper/head.go index 86a2ea0..99afed1 100644 --- a/helper/head.go +++ b/helper/head.go @@ -5,7 +5,7 @@ package helper // Head retrieves the specified number of elements -// from the given channel of float64 values and +// from the given channel of type T values and // delivers them through a new channel. // // Example: diff --git a/helper/keep_negatives.go b/helper/keep_negatives.go index a559452..cccd2f2 100644 --- a/helper/keep_negatives.go +++ b/helper/keep_negatives.go @@ -4,7 +4,7 @@ package helper -// KeepNegatives processes a stream of float64 values, retaining negative +// KeepNegatives processes a stream of type T values, retaining negative // values unchanged and replacing positive values with zero. // // Example: diff --git a/helper/keep_positives.go b/helper/keep_positives.go index 78bf604..415163b 100644 --- a/helper/keep_positives.go +++ b/helper/keep_positives.go @@ -4,7 +4,7 @@ package helper -// KeepPositives processes a stream of float64 values, retaining positive +// KeepPositives processes a stream of type T values, retaining positive // values unchanged and replacing negative values with zero. // // Example: diff --git a/helper/map.go b/helper/map.go index e834d0e..f6f71a2 100644 --- a/helper/map.go +++ b/helper/map.go @@ -6,8 +6,8 @@ package helper // Map applies the given transformation function to each element in the // input channel and returns a new channel containing the transformed -// values. The transformation function takes a float64 value as input -// and returns a float64 value as output. +// values. The transformation function takes a value of type F as input +// and returns a value of type T as output. // // Example: // diff --git a/helper/multiply.go b/helper/multiply.go index d581086..2d6ce19 100644 --- a/helper/multiply.go +++ b/helper/multiply.go @@ -4,7 +4,7 @@ package helper -// Multiply takes two channels of float64 and multiples the values +// Multiply takes two channels of type T and multiples the values // from the first channel with the values from the second channel. // It returns a new channel containing the results of // the multiplication. diff --git a/helper/multiply_by.go b/helper/multiply_by.go index 955ec77..e128e72 100644 --- a/helper/multiply_by.go +++ b/helper/multiply_by.go @@ -5,7 +5,7 @@ package helper // MultiplyBy multiplies each element in the input channel -// of float64 values by the given multiplier and returns a +// of type T values by the given multiplier and returns a // new channel containing the multiplied values. // // Example: diff --git a/helper/pow.go b/helper/pow.go index 5addad1..f125c19 100644 --- a/helper/pow.go +++ b/helper/pow.go @@ -6,7 +6,7 @@ package helper import "math" -// Pow takes a channel of float64 values and returns the element-wise +// Pow takes a channel of type T values and returns the element-wise // base-value exponential of y. // // Example: diff --git a/helper/round_digits.go b/helper/round_digits.go index 00df1d6..472cec5 100644 --- a/helper/round_digits.go +++ b/helper/round_digits.go @@ -4,7 +4,7 @@ package helper -// RoundDigits takes a channel of float64 numbers and rounds them to d +// RoundDigits takes a channel of type T numbers and rounds them to d // decimal places. // // Example: diff --git a/helper/sign.go b/helper/sign.go index 338742b..65dc370 100644 --- a/helper/sign.go +++ b/helper/sign.go @@ -4,7 +4,7 @@ package helper -// Sign takes a channel of float64 values and returns their signs +// Sign takes a channel of type T values and returns their signs // as -1 for negative, 0 for zero, and 1 for positive. // // Example: diff --git a/helper/skip.go b/helper/skip.go index 6cf2878..18bb0ca 100644 --- a/helper/skip.go +++ b/helper/skip.go @@ -5,7 +5,7 @@ package helper // Skip skips the specified number of elements from the -// given channel of float64. +// given channel of type T. // // Example: // diff --git a/helper/slice_to_chan.go b/helper/slice_to_chan.go index 476336e..2d1107d 100644 --- a/helper/slice_to_chan.go +++ b/helper/slice_to_chan.go @@ -4,7 +4,7 @@ package helper -// SliceToChan converts a slice of float64 to a channel of float64. +// SliceToChan converts a slice of type T to a channel of type T. // // Example: // diff --git a/helper/sqrt.go b/helper/sqrt.go index 485e6f8..5cc8061 100644 --- a/helper/sqrt.go +++ b/helper/sqrt.go @@ -6,7 +6,7 @@ package helper import "math" -// Sqrt calculates the square root of each value in a channel of float64. +// Sqrt calculates the square root of each value in a channel of type T. // // Example: // diff --git a/helper/subtract.go b/helper/subtract.go index 6bc57ff..7813f37 100644 --- a/helper/subtract.go +++ b/helper/subtract.go @@ -4,7 +4,7 @@ package helper -// Subtract takes two channels of float64 and subtracts the values +// Subtract takes two channels of type T and subtracts the values // from the second channel from the first one. It returns a new // channel containing the results of the subtractions. //