Skip to content

Commit

Permalink
fix over-eager header promoting regex friendly fire
Browse files Browse the repository at this point in the history
Co-authored-by: ThetaSinner <[email protected]>
  • Loading branch information
pdaoust and ThetaSinner committed Jun 24, 2024
1 parent bdcfe7f commit ee0c50d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/pages/resources/upgrade/upgrade-holochain-0.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,10 @@ This macro was renamed for consistency with other macros. The changelog entry fo
You're looking for code like:

```rust
[derive(Serialize, Deserialize)]
[serde(tag = "type")]
[hdk_entry_defs]
[unit_enum(UnitEntryTypes)]
#[derive(Serialize, Deserialize)]
#[serde(tag = "type")]
#[hdk_entry_defs]
#[unit_enum(UnitEntryTypes)]
pub enum EntryTypes {
Hello(Hello),
}
Expand All @@ -226,10 +226,10 @@ pub enum EntryTypes {
Which should be updated to:

```rust
[derive(Serialize, Deserialize)]
[serde(tag = "type")]
[hdk_entry_types]
[unit_enum(UnitEntryTypes)]
#[derive(Serialize, Deserialize)]
#[serde(tag = "type")]
#[hdk_entry_types]
#[unit_enum(UnitEntryTypes)]
pub enum EntryTypes {
Hello(Hello),
}
Expand Down

0 comments on commit ee0c50d

Please sign in to comment.