Skip to content

Commit 889931a

Browse files
authored
chore: fix various spelling typos (#945)
1 parent b0a41bb commit 889931a

File tree

11 files changed

+13
-13
lines changed

11 files changed

+13
-13
lines changed

client_server/tcp_full_duplex_client.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* instead of the server only sending and the client only receiving data,
1111
* The server and client can both send and receive data simultaneously. This is
1212
* implemented by using the `fork` function call so that in the server the child
13-
* process can recieve data and parent process can send data, and in the client
13+
* process can receive data and parent process can send data, and in the client
1414
* the child process can send data and the parent process can receive data. It
1515
* runs an infinite loop and can send and receive messages indefinitely until
1616
* the user exits the loop. In this way, the Full Duplex Form of communication

client_server/tcp_full_duplex_server.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* instead of the server only sending and the client only receiving data,
1111
* The server and client can both send and receive data simultaneously. This is
1212
* implemented by using the `fork` function call so that in the server the child
13-
* process can recieve data and parent process can send data, and in the client
13+
* process can receive data and parent process can send data, and in the client
1414
* the child process can send data and the parent process can receive data. It
1515
* runs an infinite loop and can send and receive messages indefinitely until
1616
* the user exits the loop. In this way, the Full Duplex Form of communication

data_structures/binary_trees/words_alphabetical.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* where words are separated by a space, newline, or underscore.
1010
* This program prints (writes or outputs) to another file (`wordcount.txt`),
1111
* the individual words contained in 'file.txt' with their frequencies (number
12-
* of occurences) each on a newline and in alphabetical order. This program uses
12+
* of occurrences) each on a newline and in alphabetical order. This program uses
1313
* the binary tree data structure to accomplish this task.
1414
* @author [Randy Kwalar](https://github.com/RandyKdev)
1515
*/
@@ -28,7 +28,7 @@
2828
struct Node
2929
{
3030
char *word; ///< the word (value) of the node
31-
uint64_t frequency; ///< number of occurences of the word
31+
uint64_t frequency; ///< number of occurrences of the word
3232
struct Node *left; ///< pointer to the left child node
3333
struct Node *right; ///< pointer to the right child node
3434
};

data_structures/linked_list/circular_linked_list.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ struct node *first=NULL ;
1616
struct node *last=NULL ;
1717
/* first and last are global variables and need not be passed to any function. Any changes made to variables first and last by any of the functions in the program will be reflected in the entire program */
1818

19-
/* This function is responsible for creating the Circularly Linked List right from the BEGINING. */
19+
/* This function is responsible for creating the Circularly Linked List right from the BEGINNING. */
2020
void create()
2121
{
2222
int i , n ;

data_structures/linked_list/stack_using_linked_lists.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void push(struct node *p)
4848
temp->link = top;
4949
top = temp;
5050

51-
printf("Inserted succesfully.\n");
51+
printf("Inserted successfully.\n");
5252
}
5353
void pop(struct node *p)
5454
{

developer_tools/min_printf.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ void print_int_value(int n, int width, int precision)
159159

160160
while (n > 0) {
161161
*s++ = n % 10 + '0'; // Converts last digit of number to character and store it in p
162-
++size; // Increment size variable as one more digit is occured
162+
++size; // Increment size variable as one more digit is occurred
163163
n /= 10; // Removes the last digit from the number n as we have successfully stored it in p
164164
}
165165
*s = '\0';

exercism/word_count/word_count.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ int word_count(const char *input_text, word_count_word_t *words)
7070

7171
words->count = 0;
7272

73-
/* make sure none error is occured */
73+
/* make sure none error is occurred */
7474
if (loop)
7575
{
7676
/* collects the last word up to the \0-character. and counts it.*/
@@ -88,4 +88,4 @@ int word_count(const char *input_text, word_count_word_t *words)
8888

8989
/* returns the number of words or an error code */
9090
return count_all;
91-
}
91+
}

graphics/spirograph.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ static inline void glutBitmapString(void *font, char *string)
131131
*
132132
* @param x array containing absicca of points (must be pre-allocated)
133133
* @param y array containing ordinates of points (must be pre-allocated)
134-
* @param N number of points in the the arrays
134+
* @param N number of points in the arrays
135135
*/
136136
void display_graph(const double *x, const double *y, size_t N, double l,
137137
double k)

machine_learning/kohonen_som_trace.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* \details
77
* This example implements a powerful self organizing map algorithm.
88
* The algorithm creates a connected network of weights that closely
9-
* follows the given data points. This this creates a chain of nodes that
9+
* follows the given data points. This creates a chain of nodes that
1010
* resembles the given input shape.
1111
* \author [Krishna Vedala](https://github.com/kvedala)
1212
* \see kohonen_som_topology.c

searching/floyd_cycle_detection_algorithm.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*/
2525
uint32_t duplicateNumber(const uint32_t *in_arr, size_t n)
2626
{
27-
if (n <= 1) { // to find duplicate in an array its size should be atleast 2
27+
if (n <= 1) { // to find duplicate in an array its size should be at least 2
2828
return -1;
2929
}
3030
uint32_t tortoise = in_arr[0]; ///< variable tortoise is used for the longer

sorting/radix_sort_2.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ void countSort(int *arr, int n, int place)
2222
int i, freq[range] = {0};
2323
int *output = (int *)malloc(n * sizeof(int));
2424

25-
// Store count of occurences in freq[]
25+
// Store count of occurrences in freq[]
2626
for (i = 0; i < n; i++) freq[(arr[i] / place) % range]++;
2727

2828
// Change freq[i] so that it contains the actual position of the digit in

0 commit comments

Comments
 (0)