From 8e01d239da09552bb44360d282e7b5320a2eb811 Mon Sep 17 00:00:00 2001 From: Kenta Sato Date: Sun, 11 Jun 2017 10:45:15 +0900 Subject: [PATCH] use struct instead of immutable --- src/memory.jl | 2 +- src/stream.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/memory.jl b/src/memory.jl index 31a32675..a4aaf8e8 100644 --- a/src/memory.jl +++ b/src/memory.jl @@ -1,7 +1,7 @@ # Memory # ====== -immutable Memory +struct Memory ptr::Ptr{UInt8} size::UInt end diff --git a/src/stream.jl b/src/stream.jl index 739ba78e..898dc476 100644 --- a/src/stream.jl +++ b/src/stream.jl @@ -403,7 +403,7 @@ end # State Transition # ---------------- -immutable StateTransitionError <: Exception +struct StateTransitionError <: Exception message::String states::Pair{Symbol,Symbol} end