From 5f53531d77ccc33f2593c2cbbe32887d78299b19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Voborsk=C3=BD?= Date: Sun, 4 Oct 2020 23:26:42 +0200 Subject: [PATCH] struct module minor documentation fix (#3306) Thanks --- docs/modules/struct.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/modules/struct.md b/docs/modules/struct.md index 3b4df0bb..9baefecb 100644 --- a/docs/modules/struct.md +++ b/docs/modules/struct.md @@ -99,7 +99,7 @@ print(s) ## struct.unpack() Returns the values packed in string `s` according to the format -string `fmt`. An optional `i` marks where in `s` to start reading +string `fmt`. An optional `offset` marks where in `s` to start reading (default is 1). After the read values, this function also returns the index in `s` where it stopped reading, which is also where you should start to read the rest of the string. @@ -116,7 +116,7 @@ should start to read the rest of the string. #### Returns -All the unpacked data. +All the unpacked data and index in `s` where it stoppped reading. #### Example