1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-17 20:11:57 +02:00

Merge pull request #520 from brk00/julia-test

Moved println(...) from 'Variables and Collections' section
This commit is contained in:
Nami-Doc
2014-02-08 16:17:48 +01:00

View File

@@ -92,13 +92,13 @@ false
# Another way to format strings is the printf macro. # Another way to format strings is the printf macro.
@printf "%d is less than %f" 4.5 5.3 # 5 is less than 5.300000 @printf "%d is less than %f" 4.5 5.3 # 5 is less than 5.300000
# Printing is easy
println("I'm Julia. Nice to meet you!")
#################################################### ####################################################
## 2. Variables and Collections ## 2. Variables and Collections
#################################################### ####################################################
# Printing is easy
println("I'm Julia. Nice to meet you!")
# You don't declare variables before assigning to them. # You don't declare variables before assigning to them.
some_var = 5 #=> 5 some_var = 5 #=> 5
some_var #=> 5 some_var #=> 5