Skip to content
This repository was archived by the owner on Oct 17, 2024. It is now read-only.

Update README examples to not rely on src/ imports #61

Merged
merged 1 commit into from
Jun 1, 2019

Conversation

greglittlefield-wf
Copy link
Contributor

The example in the README uses an import from crypto/src, which the Effective Dart guide forbids.

Using AccumulatorSink was recommended instead, so I've updated the examples to use that.

[tracker]: https://github.com/dart-lang/crypto/issues
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently the GitHub "propose file changes" feature added a trailing newline to this file...

@@ -78,7 +77,6 @@ hash calculating objects.
```dart
import 'dart:convert';
import 'package:crypto/crypto.dart';
import 'package:crypto/src/digest_sink.dart';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was unused

@kevmoo kevmoo merged commit a5c46a1 into dart-archive:master Jun 1, 2019
mosuem pushed a commit to dart-lang/core that referenced this pull request Oct 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

3 participants