Skip to content

Commit

Permalink
Merge pull request #5 from PumasAI-Labs/juanjose/strings-fix
Browse files Browse the repository at this point in the history
Fix error when writing strings in two consecutive lines
  • Loading branch information
jotas6 committed Jun 15, 2023
2 parents af8704a + 2c085c0 commit d2181b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 01-variables/03-strings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ include("02-booleans.jl")

# Strings are created with double quotes
"Hello, world!"

'Hello, world!' # Watch out: single quotes are reserved for Chars
'A'
'B'
Expand All @@ -28,6 +29,7 @@ greeting*", "*name # Watch out: + doesn't work

### Tip: you can place more complicated expressions inside of $()
"One plus two is equal to $(1 + 2)"

"One plus two is equal to $(abs(-4) - 1)" # Using functions (abs for absolute value)

# Pattern matching
Expand Down

0 comments on commit d2181b0

Please sign in to comment.