Commit eb1b586
docs: Update zip_writer documentation example (#431)
* Update zip_writer documentation example
Replace the fixed size buffer example with a dynamic Vec
Since the buffer size was of fixed, size, the resulting zip file was always the
same size, defeating the purpose of compression
* Comment inside an example needs "/// //"
Signed-off-by: Chris Hennick <[email protected]>
---------
Signed-off-by: Chris Hennick <[email protected]>
Co-authored-by: Chris Hennick <[email protected]>1 parent 26e6e08 commit eb1b586
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
147 | | - | |
148 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
158 | 161 | | |
159 | 162 | | |
160 | 163 | | |
| |||
0 commit comments