Skip to content

Commit 7f492fe

Browse files
committed
Update README mentioning the new way of executing the examples
1 parent 4130a45 commit 7f492fe

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Examples/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
# Snippets (Examples)
1+
# Examples
22

3-
- Command line tool to add one to every integer literal in a source file [AddOneToIntegerLiterals.swift](AddOneToIntegerLiterals.swift).
4-
- Code-generate a simple source file using SwiftSyntaxBuilder [CodeGenerationUsingSwiftSyntaxBuilder.swift](CodeGenerationUsingSwiftSyntaxBuilder.swift)
3+
Each example can be executed by navigating into this folder and running `swift run <example> <arguments>`. There is the following set of examples available:
4+
5+
- [AddOneToIntegerLiterals](AddOneToIntegerLiterals.swift): Command line tool to add 1 to every integer literal in a source file
6+
- [CodeGenerationUsingSwiftSyntaxBuilder](CodeGenerationUsingSwiftSyntaxBuilder.swift): Code-generate a simple source file using SwiftSyntaxBuilder
7+
- [MigrateToNewIfLetSyntax](MigrateToNewIfLetSyntax.swift): Command line tool to transform optional bindings in `if` statements to the new shorthand syntax
58

69
## Some Example Usages
710

0 commit comments

Comments
 (0)