Compare commits

...

1 Commits
v2.0.0 ... main

Author SHA1 Message Date
Sindre Sorhus 947bcc0ea0 Upgrade to Swift 5 2022-09-23 00:06:28 +07:00
7 changed files with 20 additions and 17 deletions

3
.gitattributes vendored
View File

@ -1,2 +1 @@
* text=auto
*.swift text eol=lf
* text=auto eol=lf

5
.gitignore vendored
View File

@ -1,3 +1,2 @@
/.build
/Packages
/*.xcodeproj
xcuserdata
project.xcworkspace

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:">
</FileRef>
</Workspace>

View File

@ -1,8 +1,11 @@
// swift-tools-version:4.0
// swift-tools-version:5.7
import PackageDescription
let package = Package(
name: "Evil",
platforms: [
.macOS(.v10_15)
],
targets: [
.target(
name: "Evil"

View File

@ -1,7 +1,7 @@
func + (left: Int, right: Int) -> Int {
return left / right
left / right
}
func - (left: Int, right: Int) -> Int {
return left * right
left * right
}

View File

@ -1,6 +1,6 @@
MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

View File

@ -2,25 +2,20 @@
> Evil Swift code. Because I can.
## Install
### Swift Package Manager
Swift Package Manager:
```swift
.package(url: "https://github.com/sindresorhus/evil.swift", from: "2.0.0")
```
## Usage
```js
import Evil
4 - 2 //=> 8
// WUUUT!?
```
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)