From b777242fb783d57b258c18645144b273e7eb0e13 Mon Sep 17 00:00:00 2001 From: Daniel Amireh Date: Mon, 13 Nov 2017 20:33:44 +0100 Subject: Update crystal.html.markdown attr_accessor -> property --- crystal.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crystal.html.markdown') diff --git a/crystal.html.markdown b/crystal.html.markdown index 15cbc0b1..ad9cf0f8 100644 --- a/crystal.html.markdown +++ b/crystal.html.markdown @@ -422,7 +422,7 @@ class Human @name end - # The above functionality can be encapsulated using the attr_accessor method as follows + # The above functionality can be encapsulated using the propery method as follows property :name # Getter/setter methods can also be created individually like this -- cgit v1.2.3 From 01ab4a60cf2a85f9d4d0f2b3fb03e12129554964 Mon Sep 17 00:00:00 2001 From: louis Date: Tue, 27 Feb 2018 16:19:06 +0100 Subject: [crystal/en] Corrected mistake --- crystal.html.markdown | 1 - 1 file changed, 1 deletion(-) (limited to 'crystal.html.markdown') diff --git a/crystal.html.markdown b/crystal.html.markdown index ad9cf0f8..8210b443 100644 --- a/crystal.html.markdown +++ b/crystal.html.markdown @@ -301,7 +301,6 @@ end (1..3).each do |index| puts "Index: #{index}" end -# Index: 0 # Index: 1 # Index: 2 # Index: 3 -- cgit v1.2.3 From 520ce46ab55f52f6e58841354f51722ec8a8387e Mon Sep 17 00:00:00 2001 From: zlotnleo Date: Wed, 13 Feb 2019 10:46:45 +0000 Subject: Add new Int128 and UInt128 types https://crystal-lang.org/api/0.27.2/UInt128.html https://crystal-lang.org/api/0.27.2/Int128.html --- crystal.html.markdown | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'crystal.html.markdown') diff --git a/crystal.html.markdown b/crystal.html.markdown index 8210b443..9fae9da3 100644 --- a/crystal.html.markdown +++ b/crystal.html.markdown @@ -25,17 +25,19 @@ true.class #=> Bool 1.class #=> Int32 -# Four signed integer types -1_i8.class #=> Int8 -1_i16.class #=> Int16 -1_i32.class #=> Int32 -1_i64.class #=> Int64 - -# Four unsigned integer types -1_u8.class #=> UInt8 -1_u16.class #=> UInt16 -1_u32.class #=> UInt32 -1_u64.class #=> UInt64 +# Five signed integer types +1_i8.class #=> Int8 +1_i16.class #=> Int16 +1_i32.class #=> Int32 +1_i64.class #=> Int64 +1_i128.class #=> Int128 + +# Five unsigned integer types +1_u8.class #=> UInt8 +1_u16.class #=> UInt16 +1_u32.class #=> UInt32 +1_u64.class #=> UInt64 +1_u128.class #=> UInt128 2147483648.class #=> Int64 9223372036854775808.class #=> UInt64 -- cgit v1.2.3