Skip to content

Commit 77187cc

Browse files
committed
Correct documentation
1 parent 632e489 commit 77187cc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/wisp/simulate.gleam

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,13 @@ pub type FileUpload {
171171
///
172172
/// ```gleam
173173
/// let file = UploadedFile(
174-
/// name: "uploaded-file",
175174
/// filename: "test.txt",
176175
/// content_type: "text/plain",
177176
/// content: <<"Hello, world!":utf8>>
178177
/// )
179178
///
180179
/// simulate.request(http.Post, "/upload")
181-
/// |> simulate.multipart_body([#("user", "joe")], [file])
180+
/// |> simulate.multipart_body([#("user", "joe")], [#("file", file)])
182181
/// ```
183182
///
184183
pub fn multipart_body(

0 commit comments

Comments
 (0)