From 9e3316c93ff680b34467fde7e0a25adcbab4808a Mon Sep 17 00:00:00 2001 From: Luis Lavena Date: Thu, 10 Mar 2016 20:52:50 -0300 Subject: [PATCH] Use Crystal's shortcut to assign variables --- src/radix/node.cr | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/radix/node.cr b/src/radix/node.cr index 54ab2e3..2512327 100644 --- a/src/radix/node.cr +++ b/src/radix/node.cr @@ -88,8 +88,7 @@ module Radix # node.priority # # => 6 # ``` - def key=(value : String) - @key = value + def key=(@key : String) @priority = compute_priority end