aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md
diff options
context:
space:
mode:
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9f2c07e..6b0be09 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -64,6 +64,20 @@ fn your_chain(_prev: Prev) -> NextProcess {
9. **\[core\]** `RenderResult` now carries new data `exit_code`
+10. **\[core\]** Added `modify` function to `ResourceMarker` for modifying a program's global resources
+
+```rust
+// Example
+ExitCode::modify::<ThisProgram>(|code| {
+ code.exit_code = 1;
+});
+
+// Equivalent to:
+this::<ThisProgram>().modify_res::<ExitCode>(|code| {
+ code.exit_code = 1;
+});
+```
+
#### **BREAKING CHANGES**:
1. **\[core\]** The signature of `exec` has been changed to `exec(self) -> i32` (previously was `exec(self)`)