Skip to content

Commit

Permalink
Merge pull request cstack#49 from ohbarye/fix-typo
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
cstack authored Jan 1, 2020
2 parents 3fd188f + fca2ab2 commit 4b6af96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions _parts/part4.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe 'database' do
raw_output.split("\n")
end

it 'inserts and retreives a row' do
it 'inserts and retrieves a row' do
result = run_script([
"insert 1 user1 person1@example.com",
"select",
Expand Down Expand Up @@ -219,7 +219,7 @@ I'm going to use [strtok()](http://www.cplusplus.com/reference/cstring/strtok/)
}
```

Calling `strtok` successively on the the input buffer breaks it into substrings by inserting a null character whenever it reaches a delimiter (space, in our case). It returns a pointer to the start of the substring.
Calling `strtok` successively on the input buffer breaks it into substrings by inserting a null character whenever it reaches a delimiter (space, in our case). It returns a pointer to the start of the substring.

We can call [strlen()](http://www.cplusplus.com/reference/cstring/strlen/) on each text value to see if it's too long.

Expand Down Expand Up @@ -404,7 +404,7 @@ And we added tests:
+ raw_output.split("\n")
+ end
+
+ it 'inserts and retreives a row' do
+ it 'inserts and retrieves a row' do
+ result = run_script([
+ "insert 1 user1 person1@example.com",
+ "select",
Expand Down
2 changes: 1 addition & 1 deletion spec/main_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def run_script(commands)
raw_output.split("\n")
end

it 'inserts and retreives a row' do
it 'inserts and retrieves a row' do
result = run_script([
"insert 1 user1 person1@example.com",
"select",
Expand Down

0 comments on commit 4b6af96

Please sign in to comment.