aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpierwill <19642016+pierwill@users.noreply.github.com>2022-03-02 05:15:43 +0000
committerIan Lance Taylor <iant@golang.org>2022-03-03 00:46:19 +0000
commit30e9a8d11d1e84aafcbb10775b4c7d9e223214fa (patch)
treefa0b4bb2273ee8f197258cda2b89141fb1c13f07
parentddeed0600885d5189001750718ab9f1216b56912 (diff)
downloadgo-x-proposal-30e9a8d11d1e84aafcbb10775b4c7d9e223214fa.tar.xz
design/generics-implementation-dictionaries-go1.18: add missing period
Change-Id: Iceb2d96c973c09617ad6edaa4b25e98bb4d65231 GitHub-Last-Rev: dba13441f8ed9418985f1baf3f87f06e46fc0215 GitHub-Pull-Request: golang/proposal#41 Reviewed-on: https://go-review.googlesource.com/c/proposal/+/388734 Reviewed-by: Ian Lance Taylor <iant@golang.org>
-rw-r--r--design/generics-implementation-dictionaries-go1.18.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/design/generics-implementation-dictionaries-go1.18.md b/design/generics-implementation-dictionaries-go1.18.md
index eca5b50..6790332 100644
--- a/design/generics-implementation-dictionaries-go1.18.md
+++ b/design/generics-implementation-dictionaries-go1.18.md
@@ -3,7 +3,7 @@
This document describes the implementation of generics via dictionaries and
gcshape stenciling in Go 1.18. It provides more concrete and up-to-date
-information than described in the [Gcshape design document](https://github.com/golang/proposal/blob/master/design/generics-implementation-gcshape.md)
+information than described in the [Gcshape design document](https://github.com/golang/proposal/blob/master/design/generics-implementation-gcshape.md).
The compiler implementation of generics (after typechecking) focuses mainly on creating instantiations of generic functions and methods that will execute with arguments that have concrete types. In order to avoid creating a different function instantiation for each invocation of a generic function/method with distinct type arguments (which would be pure stenciling), we pass a **dictionary** along with every call to a generic function/method. The [dictionary](https://go.googlesource.com/proposal/+/refs/heads/master/design/generics-implementation-dictionaries.md) provides relevant information about the type arguments that allows a single function instantiation to run correctly for many distinct type arguments.