📝 clarify runtime file export examples

This commit is contained in:
Nanaloveyuki
2026-06-13 23:44:05 +08:00
parent 61094732a8
commit ce3eb06c1c
4 changed files with 18 additions and 8 deletions
+3 -2
View File
@@ -56,10 +56,11 @@ In this example, the runtime file policy becomes a reusable structured value.
When current and default policy should be exported separately:
```moonbit
let current = file_sink_policy_to_json(sink.policy())
let current = file_sink_policy_to_json(runtime.file_policy())
let defaults = file_sink_policy_to_json(runtime.file_default_policy())
```
In this example, callers can compare policy snapshots without formatting text first.
In this example, callers can compare current and default policy snapshots without formatting text first.
### Error Case