Drop optional new from code samples (#108)
diff --git a/README.md b/README.md
index b65ed09..06f81cb 100644
--- a/README.md
+++ b/README.md
@@ -56,7 +56,7 @@
var firstChunk = utf8.encode("foo");
var secondChunk = utf8.encode("bar");
- var output = new AccumulatorSink<Digest>();
+ var output = AccumulatorSink<Digest>();
var input = sha1.startChunkedConversion(output);
input.add(firstChunk);
input.add(secondChunk); // call `add` for every chunk of input data
@@ -87,9 +87,9 @@
var key = utf8.encode('p@ssw0rd');
var bytes = utf8.encode("foobar");
- var hmacSha256 = new Hmac(sha256, key); // HMAC-SHA256
+ var hmacSha256 = Hmac(sha256, key); // HMAC-SHA256
var digest = hmacSha256.convert(bytes);
-
+
print("HMAC digest as bytes: ${digest.bytes}");
print("HMAC digest as hex string: $digest");
}