diff --git a/_parts/part4.md b/_parts/part4.md index 00a462d..c4df85e 100644 --- a/_parts/part4.md +++ b/_parts/part4.md @@ -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", @@ -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. @@ -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", diff --git a/spec/main_spec.rb b/spec/main_spec.rb index 4dbb826..d264105 100644 --- a/spec/main_spec.rb +++ b/spec/main_spec.rb @@ -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",