GregLeck

Multiline strings

Sep 23rd, 2019
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.26 KB | None | 0 0
  1. var message1 = """
  2. This string will appear
  3. on separate lines in
  4. the playground console.
  5. """
  6.  
  7. var sep = "***"
  8.  
  9. var message2 = """
  10. This string will NOT appear \
  11. on separate lines in \
  12. the playground console.
  13. """
  14.  
  15. print(message1)
  16. print(sep)
  17. print(message2)
Advertisement
Add Comment
Please, Sign In to add comment