Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3ee94a7

Browse files
markdown improvements
1 parent 550039e commit 3ee94a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lexicalscoping.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ crazy <- function() {
103103
[1] 3.14
104104
```
105105

106-
To reiterate the concept the next section explains in more detail the role and behaviour of the superassignment operator which allows the programmer to modify a variable declared outside of the current function in which the reference to the variable is made.
106+
To reiterate the concept the next section explains in more detail the role and behaviour of the "superassignment" operator which allows the programmer to modify a variable declared outside of the current function in which the reference to the variable is made.
107107
In the simplest example consider how variable `x` changes when the `crazy()` function is called.
108108

109109
```R
@@ -161,13 +161,13 @@ Perhaps the crude graphic can illuminate the effects of lexical scoping on varia
161161
+———————————+
162162
```
163163

164-
Flow of execution is `(1a) -> [(2) & (3a)] -> [(3b) & (1b)] -> (1a)`. I used the labels inner function and outer function because the same rules apply to nested functions.
164+
Flow of execution is `(1a) -> [(2) & (3a)] -> [(3b) & (1b)] -> (1a)`. I used the labels "inner function" and "outer function" because the same rules apply to nested functions.
165165

166166
## Unit tests (with expected output) for Programming Assignment 2
167167

168168
### Example
169169
```R
170-
> source(cachematrix.R)
170+
> source("cachematrix.R")
171171
> amatrix = makeCacheMatrix(matrix(c(1,2,3,4), nrow=2, ncol=2))
172172
> amatrix$get() # Returns original matrix
173173
[,1] [,2]

0 commit comments

Comments
 (0)