Skip to content

Commit 4da4b16

Browse files
committed
Fix typo
1 parent 78f4b8c commit 4da4b16

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@
1111
### Formatter
1212

1313
### Bug fixes
14+
15+
- Fixed a typo in the error message emitted when trying to run a module that
16+
does not have a main function.
17+
([Louis Pilfold](https://github.com/lpil))

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ rustup upgrade stable
101101

102102
The compiler uses a Cap'n Proto schema to serialize/deserialize module information.
103103
Occasionally, the schema needs to change. After modifying `compiler-core/schema.capnp`
104-
you need to to re-generate `compiler-core/generated/schema_capnp.rs`. To do that,
104+
you need to re-generate `compiler-core/generated/schema_capnp.rs`. To do that,
105105
[install Cap'n Proto](https://capnproto.org/install.html) and un-comment appropriate lines
106106
in `compiler-core/build.rs`. Then you should be able to re-generate that file with:
107107

compiler-core/src/error.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -922,8 +922,7 @@ forward slash and must not end with a slash."
922922
level: Level::Error,
923923
location: None,
924924
hint: Some(format!(
925-
"Add a public `main` function to \
926-
to `{}/{module}.gleam`.",
925+
"Add a public `main` function to `{}/{module}.gleam`.",
927926
origin.folder_name()
928927
)),
929928
}],

0 commit comments

Comments
 (0)