[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] [PATCH] kernel/MappedColl.st: Fix variable name typos
From: |
Lee Duhem |
Subject: |
[Help-smalltalk] [PATCH] kernel/MappedColl.st: Fix variable name typos |
Date: |
Wed, 11 Dec 2013 22:19:11 +0800 |
Hi all,
In the definitions of MappedCollection>>reject: and MappedCollection>>select:
include the following code:
| newMap |
newMap := newMap select: [:key | aBlock value: (self at: key)].
The uninitialized temporary variable `newMap' has the value `nil', which
obviously cannot understand message `select:'. According to the semantic
of MappedCollection>>reject: or MappedCollection>>select:, the third
occurrence of `newMap' in the above code should be `map', so this `newMap'
may be a variable name typo. The attached patch could fix those variable
name typos.
lee
ChangeLog
2013-12-11 Lee Duhem <address@hidden>
* kernel/MappedColl.st: Fixs variable name typos in reject: and select:.
Fix-variable-typos.patch
Description: Text Data
- [Help-smalltalk] [PATCH] kernel/MappedColl.st: Fix variable name typos,
Lee Duhem <=