From e6481dd88fe7e630cc0750cec553f09d5b47ec06 Mon Sep 17 00:00:00 2001 From: boombuler Date: Mon, 5 Jun 2017 13:46:48 +0200 Subject: [PATCH] changed documentation of securitylevel argument --- pdf417/encoder.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pdf417/encoder.go b/pdf417/encoder.go index 1bc495e..1e4f1e4 100644 --- a/pdf417/encoder.go +++ b/pdf417/encoder.go @@ -12,7 +12,8 @@ const ( ) // Encodes the given data as PDF417 barcode. -// securityLevel can be any value below 9 +// securityLevel should be between 0 and 8. The higher the number, the more +// additional error-correction codes are added. func Encode(data string, securityLevel byte) (barcode.Barcode, error) { if securityLevel >= 9 { return nil, fmt.Errorf("Invalid security level %d", securityLevel)