1
0
mirror of https://github.com/golang/go synced 2024-11-26 20:01:19 -07:00

doc/go1.15: exclude spaces from <code> block

Per the note at the top of go1.15.html.

Updates #37419.

Change-Id: Ia6917347ca1e3ebe8c55f9c0ec74e49ff481a64f
Reviewed-on: https://go-review.googlesource.com/c/go/+/236719
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
Austin Clements 2020-06-05 09:48:44 -04:00
parent 60cbff6f19
commit 76f233fe04

View File

@ -228,15 +228,15 @@ TODO
<h2 id="compiler">Compiler</h2> <h2 id="compiler">Compiler</h2>
<p><!-- https://golang.org/cl/229578 --> <p><!-- CL 229578 -->
Package <code>unsafe</code>'s <a href="/pkg/unsafe/#Pointer">safety Package <code>unsafe</code>'s <a href="/pkg/unsafe/#Pointer">safety
rules</a> allow converting an <code>unsafe.Pointer</code> rules</a> allow converting an <code>unsafe.Pointer</code>
into <code>uintptr</code> when calling certain into <code>uintptr</code> when calling certain
functions. Previously, in some cases, the compiler allowed multiple functions. Previously, in some cases, the compiler allowed multiple
chained conversions (for example, <code>syscall.Syscall(…, chained conversions (for example, <code>syscall.Syscall(…,</code>
uintptr(uintptr(ptr)), …)</code>). The compiler now requires exactly <code>uintptr(uintptr(ptr)),</code> <code>…)</code>). The compiler
one conversion. Code that used multiple conversions should be now requires exactly one conversion. Code that used multiple
updated to satisfy the safety rules. conversions should be updated to satisfy the safety rules.
</p> </p>
<p><!-- CL 230544, CL 231397 --> <p><!-- CL 230544, CL 231397 -->