Skip to content

Commit c82d383

Browse files
committed
Add missing comment annotation
1 parent 4cd54d2 commit c82d383

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/blog/2025-10-12-v0.5.0-release.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ Unlike the original typestate builder, the type of the builder remains `__Partia
205205
You can also use the optional builder with `finalize_with_default` if all fields in the extensible record implement `Default`. In that case, you can safely finalize the record without handling a potential error:
206206

207207
```rust
208-
let foo_bar = FooBar::optional_builder()
209-
.set(PhantomData::<Symbol!("foo")>, "foo".to_owned())
210-
.finalize_with_default();
208+
let foo_bar = FooBar::optional_builder() // __PartialFooBar<IsOptional, IsOptional>
209+
.set(PhantomData::<Symbol!("foo")>, "foo".to_owned()) // __PartialFooBar<IsOptional, IsOptional>
210+
.finalize_with_default(); // FooBar
211211
```
212212

213213
The optional builder is used by [`cgp-serde`](https://github.com/contextgeneric/cgp-serde/blob/46ff47fce3aa3e57700340a05833b404b9d59ddf/crates/cgp-serde/src/providers/record.rs#L49-L65) to implement generic deserialization for extensible records.

0 commit comments

Comments
 (0)