aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/swift/BarLib/mul.swift
diff options
context:
space:
mode:
Diffstat (limited to 'examples/swift/BarLib/mul.swift')
-rw-r--r--examples/swift/BarLib/mul.swift8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/swift/BarLib/mul.swift b/examples/swift/BarLib/mul.swift
new file mode 100644
index 0000000000..1f1df40512
--- /dev/null
+++ b/examples/swift/BarLib/mul.swift
@@ -0,0 +1,8 @@
+/// Class used to multiply stuff.
+public class Multiplier {
+ public init() {}
+
+ public func multiply(a: Int, _ b: Int) -> Int {
+ return a * b
+ }
+}