Skip to content

Commit 4b8920d

Browse files
committed
Korro
1 parent 6632fc1 commit 4b8920d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/StardustDocs/topics/write.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ val jsonStr = df.toJson(prettyPrint = true)
4949

5050
<!---END-->
5151

52-
### Writing spreadsheets
52+
### Write to excel spreadsheet
5353

5454
Add dependency:
5555

@@ -111,7 +111,7 @@ val unhappyPersonsSheet = df.filter { person -> !person.isHappy }.remove("isHapp
111111
listOf(happyPersonsSheet, unhappyPersonsSheet).forEach { setStyles(it) }
112112

113113
// Save the result
114-
wb.write(file.outputStream())
114+
file.outputStream().use { wb.write(it) }
115115
wb.close()
116116
```
117117

0 commit comments

Comments
 (0)