Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some doc comments #750

Merged
merged 2 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions lib/src/collection/multimap.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ abstract class Multimap<K, V> {
/// Constructs a new list-backed multimap.
factory Multimap() => ListMultimap<K, V>();

/// Constructs a new list-backed multimap. For each element e of [iterable],
/// adds an association from [key](e) to [value](e). [key] and [value] each
/// default to the identity function.
/// Constructs a new list-backed multimap.
///
/// For each element `e` of [iterable], adds an association from [key] to
/// [value]. [key] and [value] each default to the identity function.
srawlins marked this conversation as resolved.
Show resolved Hide resolved
factory Multimap.fromIterable(Iterable iterable,
{K Function(dynamic)? key,
V Function(dynamic)? value}) = ListMultimap<K, V>.fromIterable;
Expand Down Expand Up @@ -243,9 +244,10 @@ abstract class _BaseMultimap<K, V, C extends Iterable<V>>
class ListMultimap<K, V> extends _BaseMultimap<K, V, List<V>> {
ListMultimap();

/// Constructs a new list-backed multimap. For each element e of [iterable],
/// adds an association from [key](e) to [value](e). [key] and [value] each
/// default to the identity function.
/// Constructs a new list-backed multimap.
///
/// For each element `e` of [iterable], adds an association from [key] to
/// [value]. [key] and [value] each default to the identity function.
ListMultimap.fromIterable(super.iterable, {super.key, super.value})
: super.fromIterable();

Expand Down Expand Up @@ -285,9 +287,10 @@ class ListMultimap<K, V> extends _BaseMultimap<K, V, List<V>> {
class SetMultimap<K, V> extends _BaseMultimap<K, V, Set<V>> {
SetMultimap();

/// Constructs a new set-backed multimap. For each element e of [iterable],
/// adds an association from [key](e) to [value](e). [key] and [value] each
/// default to the identity function.
/// Constructs a new set-backed multimap.
///
/// For each element `e` of [iterable], adds an association from [key] to
/// [value]. [key] and [value] each default to the identity function.
SetMultimap.fromIterable(super.iterable, {super.key, super.value})
: super.fromIterable();

Expand Down
2 changes: 1 addition & 1 deletion lib/testing/src/async/fake_async.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import 'package:quiver/time.dart';
/// simulated using [elapseBlocking].
///
/// To allow the unit under test to tell time, it can receive a [Clock] as a
/// dependency, and default it to [const Clock()] in production, but then use
/// dependency, and default it to `const Clock()` in production, but then use
/// [Clock] in test code.
///
/// Example:
Expand Down