Skip to content

Commit 96b5b23

Browse files
update README
1 parent 0b1f8ab commit 96b5b23

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
Write HTML using Swift Macros.
2+
3+
<a href="https://swift.org"><img src="https://img.shields.io/badge/Swift-5.9+-orange" alt="Requires at least Swift 5.9"></a> <img src="https://img.shields.io/badge/Platforms-Any-gold"> <a href="https://github.com/RandomHashTags/swift-htmlkit/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-Apache_2.0-blue" alt="Apache 2.0 License">
4+
25
- [Why?](#why)
36
- [Examples](#examples)
47
- [Basic](#basic)
58
- [Advanced](#advanced)
69
- [Benchmarks](#benchmarks)
10+
- [Conclusion](#conclusion)
11+
- [Contributing](#contributing)
12+
- [Funding](#funding)
713

814
## Why?
915
- Swift Macros are powerful and offer performance benefits
@@ -77,7 +83,7 @@ Using String Interpolation.
7783
let string:String = "any string value", integer:Int = -69, float:Float = 3.14159
7884

7985
// ✅ DO
80-
let _:String = #p(["\(string) \(integer); \(float)"])
86+
let _:String = #p(["\(string); \(integer); \(float)"])
8187

8288
// ❌ DON'T
8389
let _:String = #p([string, "; ", String(describing: integer), "; ", float.description])

0 commit comments

Comments
 (0)