Skip to content

Commit 0987821

Browse files
authored
Docs: Fix comments on struct index signature example (#1307)
1 parent faf6312 commit 0987821

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

content/src/content/docs/docs/schema/basic-usage.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1409,8 +1409,8 @@ This can lead to unexpected TypeScript behavior.
14091409
import { Schema } from "effect"
14101410

14111411
// Attempting to define a struct with a conflicting index signature
1412-
// - The fixed property "a" is a number
1413-
// - The index signature requires all values to be strings
1412+
// - The fixed property "a" is a string
1413+
// - The index signature requires all values to be numbers
14141414
const schema = Schema.Struct(
14151415
{ a: Schema.String },
14161416
{ key: Schema.String, value: Schema.Number }

0 commit comments

Comments
 (0)