Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(255)

Unified Diff: sdk/lib/collection/hash_map.dart

Issue 2548433002: Don't use [operator==] to refer to [==] in DartDoc. It doesn't work. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/async/zone.dart ('k') | sdk/lib/collection/hash_set.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/collection/hash_map.dart
diff --git a/sdk/lib/collection/hash_map.dart b/sdk/lib/collection/hash_map.dart
index d934e8c61118e28e9426687935b02ab0de747990..6824328822877956769363a7d8861963d5de7cce 100644
--- a/sdk/lib/collection/hash_map.dart
+++ b/sdk/lib/collection/hash_map.dart
@@ -17,7 +17,7 @@ typedef int _Hasher<K>(K object);
/**
* A hash-table based implementation of [Map].
*
- * The keys of a `HashMap` must have consistent [Object.operator==]
+ * The keys of a `HashMap` must have consistent [Object.==]
* and [Object.hashCode] implementations. This means that the `==` operator
* must define a stable equivalence relation on the keys (reflexive,
* symmetric, transitive, and consistent over time), and that `hashCode`
@@ -41,14 +41,14 @@ abstract class HashMap<K, V> implements Map<K, V> {
* same as long as the map isn't changed.
*
* If [equals] is provided, it is used to compare the keys in the table with
- * new keys. If [equals] is omitted, the key's own [Object.operator==] is used
+ * new keys. If [equals] is omitted, the key's own [Object.==] is used
* instead.
*
* Similar, if [hashCode] is provided, it is used to produce a hash value
* for keys in order to place them in the hash table. If it is omitted, the
* key's own [Object.hashCode] is used.
*
- * If using methods like [operator[]], [remove] and [containsKey] together
+ * If using methods like [[]], [remove] and [containsKey] together
* with a custom equality and hashcode, an extra `isValidKey` function
* can be supplied. This function is called before calling [equals] or
* [hashCode] with an argument that may not be a [K] instance, and if the
« no previous file with comments | « sdk/lib/async/zone.dart ('k') | sdk/lib/collection/hash_set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698