From 4ab2264c16f2a98d4cf7ed323a94bc8447ae262c Mon Sep 17 00:00:00 2001 From: nomicon-kr Date: Tue, 16 Jul 2024 20:51:56 +0900 Subject: [PATCH] Update subtyping.md --- src/subtyping.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/subtyping.md b/src/subtyping.md index f09fead..950167e 100644 --- a/src/subtyping.md +++ b/src/subtyping.md @@ -1,11 +1,8 @@ -# Subtyping and Variance +# Subtyping과 변성(變性,Variance) -Rust uses lifetimes to track the relationships between borrows and ownership. -However, a naive implementation of lifetimes would be either too restrictive, -or permit undefined behavior. +러스트는 빌림과 소유권 사이의 관계를 추적하기 위해 수명을 사용합니다. 하지만 수명의 순진한 구현은 너무 제한적이거나, 아니면 미정의 동작을 허용하게 됩니다. -In order to allow flexible usage of lifetimes -while also preventing their misuse, Rust uses **subtyping** and **variance**. +수명을 유연하게 사용하면서도 수명의 오용을 방지하기 위해서, 러스트는 **Subtyping**과 **변성(變性,Variance)**을 사용합니다. Let's start with an example.