Skip to content

Commit 69a9bbd

Browse files
committed
fix: bug that incorrectly generates WIT worlds with words that start with a digit from packages using valid semver
Signed-off-by: Andrew Steurer <[email protected]>
1 parent 4a71d5c commit 69a9bbd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wit/bindgen/generator.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2445,7 +2445,8 @@ var replacer = strings.NewReplacer(
24452445
// The below replacements will ensure that worlds generated from the package name
24462446
// follow WIT identifier rules disallowing words to begin with a digit
24472447
// and still allow package names to use semver.
2448-
// For example, the package `wasi:io/[email protected]` used to generate the following world:
2448+
// For example, the package `wasi:io/[email protected]` will be used to
2449+
// generate the following world:
24492450
//
24502451
// world wasi-io-WORLD-imports-v020-rc-x2023-x11-x10`{
24512452
// ...

0 commit comments

Comments
 (0)