diff options
author | Dmitry Shevchenko <dmishe@google.com> | 2017-01-13 22:18:10 +0000 |
---|---|---|
committer | Vladimir Moskva <vladmos@google.com> | 2017-01-16 13:45:52 +0000 |
commit | 2afab6b2f4263223a1752b526eeb758a0cc36746 (patch) | |
tree | 0b85309caceec6e50d55c9b6ef7f8407ef72f398 /examples/swift/foo.swift | |
parent | 514652b7410135521c0d90c48becd8576e7140ef (diff) |
Fix warnings in Bazel Swift example library
* Require callers to use argument labels so that the call site looks the same in Swift 2 and 3.
--
PiperOrigin-RevId: 144484042
MOS_MIGRATED_REVID=144484042
Diffstat (limited to 'examples/swift/foo.swift')
-rw-r--r-- | examples/swift/foo.swift | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/swift/foo.swift b/examples/swift/foo.swift index 1dd35c4407..4f80dad878 100644 --- a/examples/swift/foo.swift +++ b/examples/swift/foo.swift @@ -4,6 +4,6 @@ public class Foo { public init() {} public func multiply() -> Int { - return Multiplier().multiply(Constants.x, Constants.y) + return Multiplier().multiply(a: Constants.x, b: Constants.y) } } |