Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
marthasharkey committed Dec 27, 2024
1 parent 7062247 commit 75a5ac3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion std-bits/base/src/main/java/org/enso/base/Text_Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static boolean has_leading_trailing_whitespace(String s) {
* Checks if the string contains any non trivial whitespace.
*
* @param s the string to check
* @return whether the string has leading or trailing whitespace
* @return whether the string contains any of the non trivial whitespace listed
*/
public static boolean has_non_trivial_whitespace(String s) {
List<String> trivialWhiteSpaceList =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ public class CountWhitespace {
// Default sample size for counting untrimmed cells.
public static final long DEFAULT_SAMPLE_SIZE = 100000;

/** Counts the number of cells in the columns with leading or trailing whitespace. */
/** Counts the number of cells in the columns with non trivial whitespace */
public static Long apply(Column column, long sampleSize) throws InterruptedException {
ColumnStorage storage = column.getStorage();
return applyToStorage(storage, sampleSize);
}

/** Counts the number of cells in the given storage with leading or trailing whitespace. */
/** Counts the number of cells in the given storage with non trivial whitespace */
public static Long applyToStorage(ColumnStorage storage, long sampleSize)
throws InterruptedException {
return (sampleSize == DEFAULT_SAMPLE_SIZE && storage instanceof StringStorage stringStorage)
Expand Down

0 comments on commit 75a5ac3

Please sign in to comment.