rspec/rules/S4143/go/rule.adoc

34 lines
566 B
Plaintext
Raw Normal View History

2020-06-30 12:49:37 +02:00
include::../description.adoc[]
== Noncompliant Code Example
2022-02-04 17:28:24 +01:00
[source,go]
2020-06-30 12:49:37 +02:00
----
var letters = make(map[string]string)
letters["a"] = "Apple"
letters["a"] = "Boy" // Noncompliant
var towns = make(map[int]string)
towns[i] = "London"
towns[i] = "Chicago" // Noncompliant
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
include::../highlighting.adoc[]
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]