From 50fa3a52e7c8158257219157b7e526aded71369f Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Wed, 20 Jan 2016 11:29:17 -0800 Subject: [PATCH] Closure type annotation: encode never returns null --- lib/encoding.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/encoding.js b/lib/encoding.js index 15e34b4..7a04bf8 100644 --- a/lib/encoding.js +++ b/lib/encoding.js @@ -1273,7 +1273,7 @@ if (typeof module !== "undefined" && module.exports) { /** * @param {string=} opt_string The string to encode. * @param {Object=} options - * @return {Uint8Array} Encoded bytes, as a Uint8Array. + * @return {!Uint8Array} Encoded bytes, as a Uint8Array. */ TextEncoder.prototype.encode = function encode(opt_string, options) { opt_string = opt_string ? String(opt_string) : '';