Skip to content

Commit 2af9d09

Browse files
committed
fix missing space
1 parent 7345b79 commit 2af9d09

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

third_party/move/move-compiler-v2/src/function_checker.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ pub fn check_access_and_use(env: &mut GlobalEnv, before_inlining: bool) {
121121
// Only public functions are visible from scripts.
122122
generic_error(
123123
env,
124-
"a script",
124+
"a script ",
125125
"it is not public",
126126
sites,
127127
&callee_func,

third_party/move/move-compiler-v2/tests/checking/visibility-checker/main_call_visibility_friend.exp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
Diagnostics:
3-
error: function `0x2::X::foo` cannot be called from a scriptbecause it is not public
3+
error: function `0x2::X::foo` cannot be called from a script because it is not public
44
┌─ tests/checking/visibility-checker/main_call_visibility_friend.move:3:24
55
66
3 │ public(friend) fun foo() {}
@@ -12,7 +12,7 @@ error: function `0x2::X::foo` cannot be called from a scriptbecause it is not pu
1212
15 │ 0x2::X::foo();
1313
│ ------------- called here
1414

15-
error: function `0x2::X::baz` cannot be called from a scriptbecause it is not public
15+
error: function `0x2::X::baz` cannot be called from a script because it is not public
1616
┌─ tests/checking/visibility-checker/main_call_visibility_friend.move:7:9
1717
1818
7 │ fun baz() {}

third_party/move/move-compiler-v2/tests/visibility-checker/v1-typing/main_call_visibility_friend.exp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
Diagnostics:
3-
error: function `0x2::X::foo` cannot be called from a scriptbecause it is not public
3+
error: function `0x2::X::foo` cannot be called from a script because it is not public
44
┌─ tests/visibility-checker/v1-typing/main_call_visibility_friend.move:3:24
55
66
3 │ public(friend) fun foo() {}
@@ -12,7 +12,7 @@ error: function `0x2::X::foo` cannot be called from a scriptbecause it is not pu
1212
15 │ 0x2::X::foo();
1313
│ ------------- called here
1414

15-
error: function `0x2::X::baz` cannot be called from a scriptbecause it is not public
15+
error: function `0x2::X::baz` cannot be called from a script because it is not public
1616
┌─ tests/visibility-checker/v1-typing/main_call_visibility_friend.move:7:9
1717
1818
7 │ fun baz() {}

0 commit comments

Comments
 (0)