mirror of
				https://github.com/golang/go.git
				synced 2025-10-31 00:30:57 +00:00 
			
		
		
		
	cmd/api: s/ideal-bool/bool/
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5674105
This commit is contained in:
		
							parent
							
								
									0e70f2722b
								
							
						
					
					
						commit
						95b0fe141c
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -209,7 +209,7 @@ func (w *Walker) hardCodedConstantType(name string) (typ string, ok bool) { | ||||||
| 	case "pkg syscall": | 	case "pkg syscall": | ||||||
| 		switch name { | 		switch name { | ||||||
| 		case "darwinAMD64": | 		case "darwinAMD64": | ||||||
| 			return "ideal-bool", true | 			return "bool", true | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 	return "", false | 	return "", false | ||||||
|  | @ -447,7 +447,7 @@ func (w *Walker) constValueType(vi interface{}) (string, error) { | ||||||
| 			return "ideal-int", nil // hack. | 			return "ideal-int", nil // hack. | ||||||
| 		} | 		} | ||||||
| 		if v.Name == "false" || v.Name == "true" { | 		if v.Name == "false" || v.Name == "true" { | ||||||
| 			return "ideal-bool", nil | 			return "bool", nil | ||||||
| 		} | 		} | ||||||
| 		if v.Name == "intSize" && w.curPackageName == "strconv" { | 		if v.Name == "intSize" && w.curPackageName == "strconv" { | ||||||
| 			// Hack. | 			// Hack. | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Russ Cox
						Russ Cox