Skip to content

Commit c86e69c

Browse files
committed
Merge
2 parents a34953a + bd5da4f commit c86e69c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Q: Symbols are immutable objects. Name another immutable core Ruby object.
110110
A: `Fixnum`
111111

112112
Q: What happens when a value is too big for `Fixnum`?
113-
A: It is automatically converteed to a `Bignum`.
113+
A: It is automatically converted to a `Bignum`.
114114

115115
Q: The superclass of `Fixnum` is __.
116116
A: `Integer`
@@ -251,7 +251,7 @@ Q: Name two `Enumerable` classes (classes which mix in the `Enumerable` module).
251251
A: `Array`, `Hash`, `Set`, `Range`, `IO`...
252252

253253
Q: When might you use the `do`/`end` syntax versus using the curly bracket syntax for a block?
254-
A: The `do`/`end` syntax for a block is commonly used for multiline statements. An alternate convention is to use curly bracket syntax for blocks that return a value while using `do`/`end` syntax for blocks that change the state of the system somehow and do not return a value.
254+
A: The `do`/`end` syntax for a block is commonly used for multi-line statements. An alternate convention is to use curly bracket syntax for blocks that return a value while using `do`/`end` syntax for blocks that change the state of the system somehow and do not return a value.
255255

256256
Q: What is an iterator?
257257
A: An object that allows traversal of the elements of the container. In Ruby, an iterator is any method that uses the yield statement.
@@ -391,7 +391,7 @@ Procs and Lambdas
391391
Q: What are the two varieties of Proc objects?
392392
A: Procs and lambdas.
393393

394-
Q: How do you accept an associated block within a Proc's paramters list.
394+
Q: How do you accept an associated block within a Proc's parameters list.
395395
A: Prefix `&` to the last parameter.
396396

397397
Q: What is true about a method argument that is prefixed with `&`?
@@ -403,7 +403,7 @@ A: Calling a lambda is more akin to invoking a method where a return statement i
403403
Q: Does an object have to be a Proc object for a `&` to be prefixed to it in a parameter list?
404404
A: No, `&` can appear before any object with a `#to_proc` method.
405405

406-
Q: What is the difference between a Proc invocation and a lambda invocaton?
406+
Q: What is the difference between a Proc invocation and a lambda invocation?
407407
A: There must be a block associated with lambda invocation. Lambdas must be invoked with the exact number of arguments as is required by method invocation, whereas procs are more flexible in receiving arguments.
408408

409409
Q: When might you encounter a `LocalJumpError`?

0 commit comments

Comments
 (0)