You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As pointed out #1429, the `pkg_manifest_minimal` example was calling
`ComplexClass.greet()` and printing the result, but the function did not
return anything. Instead, it was printing in `greet()` function. That
was not the original intent. I updated `ComplexClass.greet()` to return
the greeting so that the executable can print it. I also added a check
in `do_test` to confirm that it was being output properly. All of this
was a miss on my part.
Thanks to @0xLucasMarcal for pointing this.
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: examples/pkg_manifest_minimal/third_party/NotThatAmazingModule/Sources/NotThatAmazingModule/NotThatAmazingModule.swift
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,8 @@ public class ComplexClass {
11
11
self.favoriteColors = favoriteColors
12
12
}
13
13
14
-
publicfunc greet(){
15
-
print("Hello, my name is \(name) and I'm \(age) years old.")
14
+
publicfunc greet()->String{
15
+
return"Hello, my name is \(name) and I'm \(age) years old."
0 commit comments