Skip to content

Commit d1722cb

Browse files
king6conglambda-fairy
authored andcommitted
Fix wording in "Fold" pattern (#69)
Co-authored-by: Chris Wong <[email protected]>
1 parent 82740a1 commit d1722cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

patterns/fold.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ exclusively, the original copy of the data structure cannot be re-used. On the
100100
other hand if a node is not changed, reusing it is very efficient.
101101

102102
If we were to operate on borrowed references, the original data structure can be
103-
reused, however, if a node is unchanged it must be cloned, which can be
103+
reused; however, a node must be cloned even if unchanged, which can be
104104
expensive.
105105

106106
Using a reference counted pointer gives the best of both worlds - we can reuse

0 commit comments

Comments
 (0)