Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
54e8696a
Unverified
Commit
54e8696a
authored
Oct 04, 2020
by
Lukáš Voborský
Committed by
GitHub
Oct 04, 2020
Browse files
struct module minor documentation fix (#3306)
Thanks
parent
ebfce4a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/modules/struct.md
View file @
54e8696a
...
@@ -99,7 +99,7 @@ print(s)
...
@@ -99,7 +99,7 @@ print(s)
## struct.unpack()
## struct.unpack()
Returns the values packed in string
`s`
according to the format
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
(default is 1). After the read values, this function also returns
the index in
`s`
where it stopped reading, which is also where you
the index in
`s`
where it stopped reading, which is also where you
should start to read the rest of the string.
should start to read the rest of the string.
...
@@ -116,7 +116,7 @@ should start to read the rest of the string.
...
@@ -116,7 +116,7 @@ should start to read the rest of the string.
#### Returns
#### Returns
All the unpacked data.
All the unpacked data
and index in
`s`
where it stoppped reading
.
#### Example
#### Example
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment