Fix small typos (#4357)

This commit is contained in:
Abhinav Pandey 2023-09-08 18:40:22 +05:30 committed by GitHub
parent 77caf26033
commit 81f38174a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -16,7 +16,7 @@ public class BufferedReader {
private static final int DEFAULT_BUFFER_SIZE = 5; private static final int DEFAULT_BUFFER_SIZE = 5;
/** /**
* Maximum number of bytes the buffer can hold. * The maximum number of bytes the buffer can hold.
* Value is changed when encountered Eof to not * Value is changed when encountered Eof to not
* cause overflow read of 0 bytes * cause overflow read of 0 bytes
*/ */
@ -100,7 +100,7 @@ public class BufferedReader {
* Removes the already read bytes from the buffer * Removes the already read bytes from the buffer
* in-order to make space for new bytes to be filled up. * in-order to make space for new bytes to be filled up.
* <p> * <p>
* This may also do the job to read first time data (whole buffer is empty) * This may also do the job to read first time data (the whole buffer is empty)
*/ */
private void pushRefreshData() throws IOException { private void pushRefreshData() throws IOException {
@ -116,7 +116,7 @@ public class BufferedReader {
/** /**
* Reads one complete block of size {bufferSize} * Reads one complete block of size {bufferSize}
* if found eof, the total length of array will * if found eof, the total length of an array will
* be that of what's available * be that of what's available
* *
* @return a completed block * @return a completed block

View File

@ -15,9 +15,9 @@ import org.apache.commons.lang3.tuple.Pair;
* <p> * <p>
* link: https://en.wikipedia.org/wiki/Amicable_numbers * link: https://en.wikipedia.org/wiki/Amicable_numbers
* <p> * <p>
* Simple Example : (220, 284) * Simple Example: (220, 284)
* 220 is divisible by {1,2,4,5,10,11,20,22,44,55,110} <- SUM = 284 * 220 is divisible by {1,2,4,5,10,11,20,22,44,55,110} <-SUM = 284
* 284 is divisible by {1,2,4,71,142} <- SUM = 220. * 284 is divisible by {1,2,4,71,142} <-SUM = 220.
*/ */
public class AmicableNumber { public class AmicableNumber {
/** /**