mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-17 20:11:57 +02:00
Moved println() from 'Variables and Collections' section
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user