Skip to content

Commit 2b382e6

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 2b382e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wit/bindgen/generator.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2444,8 +2444,8 @@ var replacer = strings.NewReplacer(
24442444
"%", "",
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
2447-
// and still allow package names to use semver.
2448-
// For example, the package `wasi:io/[email protected]` used to generate the following world:
2447+
// and still allow package names to use semver. For example, the package
2448+
// `wasi:io/[email protected]` will be used to generate the following world:
24492449
//
24502450
// world wasi-io-WORLD-imports-v020-rc-x2023-x11-x10`{
24512451
// ...

0 commit comments

Comments
 (0)