Correct small grammatical error in KDocs
Updated KDoc generator template to address all instances of
a grammatical error ("less" -> "fewer").
Also committed newly generate _Collections.kt, _Sequences.kt,
and _Strings.kt.
This commit is contained in:
committed by
Ilya Gorbunov
parent
28e148d35a
commit
2b03c10941
@@ -642,7 +642,7 @@ object Generators : TemplateGroupBase() {
|
||||
|
||||
Note that the ${f.viewResult} passed to the [transform] function is ephemeral and is valid only inside that function.
|
||||
You should not store it or allow it to escape in some way, unless you made a snapshot of it.
|
||||
Several last ${f.viewResult.pluralize()} may have less ${f.element.pluralize()} than the given [size].
|
||||
Several last ${f.viewResult.pluralize()} may have fewer ${f.element.pluralize()} than the given [size].
|
||||
|
||||
Both [size] and [step] must be positive and can be greater than the number of elements in this ${f.collection}.
|
||||
@param size the number of elements to take in each window
|
||||
@@ -724,7 +724,7 @@ object Generators : TemplateGroupBase() {
|
||||
sliding along this ${f.collection} with the given [step], where each
|
||||
snapshot is ${f.snapshotResult.prefixWithArticle()}.
|
||||
|
||||
Several last ${f.snapshotResult.pluralize()} may have less ${f.element.pluralize()} than the given [size].
|
||||
Several last ${f.snapshotResult.pluralize()} may have fewer ${f.element.pluralize()} than the given [size].
|
||||
|
||||
Both [size] and [step] must be positive and can be greater than the number of elements in this ${f.collection}.
|
||||
@param size the number of elements to take in each window
|
||||
@@ -778,7 +778,7 @@ object Generators : TemplateGroupBase() {
|
||||
|
||||
Note that the ${f.viewResult} passed to the [transform] function is ephemeral and is valid only inside that function.
|
||||
You should not store it or allow it to escape in some way, unless you made a snapshot of it.
|
||||
Several last ${f.viewResult.pluralize()} may have less ${f.element.pluralize()} than the given [size].
|
||||
Several last ${f.viewResult.pluralize()} may have fewer ${f.element.pluralize()} than the given [size].
|
||||
|
||||
Both [size] and [step] must be positive and can be greater than the number of elements in this ${f.collection}.
|
||||
@param size the number of elements to take in each window
|
||||
@@ -814,7 +814,7 @@ object Generators : TemplateGroupBase() {
|
||||
sliding along this ${f.collection} with the given [step], where each
|
||||
snapshot is ${f.snapshotResult.prefixWithArticle()}.
|
||||
|
||||
Several last ${f.snapshotResult.pluralize()} may have less ${f.element.pluralize()} than the given [size].
|
||||
Several last ${f.snapshotResult.pluralize()} may have fewer ${f.element.pluralize()} than the given [size].
|
||||
|
||||
Both [size] and [step] must be positive and can be greater than the number of elements in this ${f.collection}.
|
||||
@param size the number of elements to take in each window
|
||||
@@ -842,7 +842,7 @@ object Generators : TemplateGroupBase() {
|
||||
|
||||
Note that the ${f.viewResult} passed to the [transform] function is ephemeral and is valid only inside that function.
|
||||
You should not store it or allow it to escape in some way, unless you made a snapshot of it.
|
||||
The last ${f.viewResult} may have less ${f.element.pluralize()} than the given [size].
|
||||
The last ${f.viewResult} may have fewer ${f.element.pluralize()} than the given [size].
|
||||
|
||||
@param size the number of elements to take in each ${f.viewResult}, must be positive and can be greater than the number of elements in this ${f.collection}.
|
||||
"""
|
||||
@@ -869,7 +869,7 @@ object Generators : TemplateGroupBase() {
|
||||
"""
|
||||
Splits this ${f.collection} into a ${f.mapResult} of ${f.snapshotResult.pluralize()} each not exceeding the given [size].
|
||||
|
||||
The last ${f.snapshotResult} in the resulting ${f.mapResult} may have less ${f.element.pluralize()} than the given [size].
|
||||
The last ${f.snapshotResult} in the resulting ${f.mapResult} may have fewer ${f.element.pluralize()} than the given [size].
|
||||
|
||||
@param size the number of elements to take in each ${f.snapshotResult}, must be positive and can be greater than the number of elements in this ${f.collection}.
|
||||
"""
|
||||
@@ -898,7 +898,7 @@ object Generators : TemplateGroupBase() {
|
||||
|
||||
Note that the ${f.viewResult} passed to the [transform] function is ephemeral and is valid only inside that function.
|
||||
You should not store it or allow it to escape in some way, unless you made a snapshot of it.
|
||||
The last ${f.viewResult} may have less ${f.element.pluralize()} than the given [size].
|
||||
The last ${f.viewResult} may have fewer ${f.element.pluralize()} than the given [size].
|
||||
|
||||
@param size the number of elements to take in each ${f.viewResult}, must be positive and can be greater than the number of elements in this ${f.collection}.
|
||||
"""
|
||||
@@ -923,7 +923,7 @@ object Generators : TemplateGroupBase() {
|
||||
"""
|
||||
Splits this ${f.collection} into a sequence of ${f.snapshotResult.pluralize()} each not exceeding the given [size].
|
||||
|
||||
The last ${f.snapshotResult} in the resulting sequence may have less ${f.element.pluralize()} than the given [size].
|
||||
The last ${f.snapshotResult} in the resulting sequence may have fewer ${f.element.pluralize()} than the given [size].
|
||||
|
||||
@param size the number of elements to take in each ${f.snapshotResult}, must be positive and can be greater than the number of elements in this ${f.collection}.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user