Skip to content

Fixed Small typos :-) #4357

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/main/java/com/thealgorithms/io/BufferedReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class BufferedReader {
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
* cause overflow read of 0 bytes
*/
Expand Down Expand Up @@ -100,7 +100,7 @@ public int peek(int n) throws IOException {
* Removes the already read bytes from the buffer
* in-order to make space for new bytes to be filled up.
* <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 {
Expand All @@ -116,7 +116,7 @@ private void pushRefreshData() throws IOException {

/**
* 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
*
* @return a completed block
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/thealgorithms/maths/AmicableNumber.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
* <p>
* link: https://en.wikipedia.org/wiki/Amicable_numbers
* <p>
* Simple Example : (220, 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.
* Simple Example: (220, 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.
*/
public class AmicableNumber {
/**
Expand Down