Skip to content

Commit 2eab3de

Browse files
committed
docs: add language tag to code block and note defaults.Set error
1 parent 65c5fdd commit 2eab3de

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

MIGRATION.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This guide covers migrating from the previous salt version to the new structure.
66

77
Update `go.mod` to require Go 1.24:
88

9-
```
9+
```text
1010
go 1.24
1111
```
1212

@@ -279,7 +279,7 @@ httpMW := middleware.DefaultHTTP(slog.Default())
279279
// If you imported go-defaults directly:
280280
// Before: "github.com/mcuadros/go-defaults"
281281
// After: "github.com/creasty/defaults"
282-
// API change: defaults.SetDefaults(cfg) → defaults.Set(cfg)
282+
// API change: defaults.SetDefaults(cfg) → defaults.Set(cfg) (now returns error)
283283
```
284284

285285
The config package no longer prints warnings to stdout when a config file is missing.

0 commit comments

Comments
 (0)