We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42804ea commit c95ad7aCopy full SHA for c95ad7a
src/fmt/doc.go
@@ -147,6 +147,10 @@
147
func (x X) String() string { return Sprintf("<%s>", x) }
148
convert the value before recurring:
149
func (x X) String() string { return Sprintf("<%s>", string(x)) }
150
+ Infinite recursion can also be triggered by self-referential data
151
+ structures, such as a slice that contains itself as an element, if
152
+ that type has a String method. Such pathologies are rare, however,
153
+ and the package does not protect against them.
154
155
Explicit argument indexes:
156
0 commit comments