summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--std/io/readers.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/io/readers.ts b/std/io/readers.ts
index 83115ee19..58961b430 100644
--- a/std/io/readers.ts
+++ b/std/io/readers.ts
@@ -7,7 +7,7 @@ import { encode } from "../encoding/utf8.ts";
/** Reader utility for strings */
export class StringReader extends Deno.Buffer {
- constructor(private readonly s: string) {
+ constructor(s: string) {
super(encode(s).buffer);
}
}