Skip to content

Commit 81f3817

Browse files
Fix small typos (#4357)
1 parent 77caf26 commit 81f3817

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/main/java/com/thealgorithms/io/BufferedReader.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class BufferedReader {
1616
private static final int DEFAULT_BUFFER_SIZE = 5;
1717

1818
/**
19-
* Maximum number of bytes the buffer can hold.
19+
* The maximum number of bytes the buffer can hold.
2020
* Value is changed when encountered Eof to not
2121
* cause overflow read of 0 bytes
2222
*/
@@ -100,7 +100,7 @@ public int peek(int n) throws IOException {
100100
* Removes the already read bytes from the buffer
101101
* in-order to make space for new bytes to be filled up.
102102
* <p>
103-
* This may also do the job to read first time data (whole buffer is empty)
103+
* This may also do the job to read first time data (the whole buffer is empty)
104104
*/
105105

106106
private void pushRefreshData() throws IOException {
@@ -116,7 +116,7 @@ private void pushRefreshData() throws IOException {
116116

117117
/**
118118
* Reads one complete block of size {bufferSize}
119-
* if found eof, the total length of array will
119+
* if found eof, the total length of an array will
120120
* be that of what's available
121121
*
122122
* @return a completed block

src/main/java/com/thealgorithms/maths/AmicableNumber.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
* <p>
1616
* link: https://en.wikipedia.org/wiki/Amicable_numbers
1717
* <p>
18-
* Simple Example : (220, 284)
19-
* 220 is divisible by {1,2,4,5,10,11,20,22,44,55,110} <- SUM = 284
20-
* 284 is divisible by {1,2,4,71,142} <- SUM = 220.
18+
* Simple Example: (220, 284)
19+
* 220 is divisible by {1,2,4,5,10,11,20,22,44,55,110} <-SUM = 284
20+
* 284 is divisible by {1,2,4,71,142} <-SUM = 220.
2121
*/
2222
public class AmicableNumber {
2323
/**

0 commit comments

Comments
 (0)